草庐IT

silent-notification

全部标签

ios - 应用因 "Missing Push Notification Entitlement"而被拒绝

最近我的申请在上传时被拒绝了。Apple审核团队说我的应用程序“缺少推送通知权利”这是他们提供的信息:MissingPushNotificationEntitlement-YourappregisterswiththeApplePushNotificationService,buttheapplicationsignature'sentitlementsdonotincludetherequired"aps-environment"entitlement.MakesureyouhaveenabledPushNotificationServicesforthisapp,andthatyo

ios - 应用因 "Missing Push Notification Entitlement"而被拒绝

最近我的申请在上传时被拒绝了。Apple审核团队说我的应用程序“缺少推送通知权利”这是他们提供的信息:MissingPushNotificationEntitlement-YourappregisterswiththeApplePushNotificationService,buttheapplicationsignature'sentitlementsdonotincludetherequired"aps-environment"entitlement.MakesureyouhaveenabledPushNotificationServicesforthisapp,andthatyo

ios - 为什么 "add Push notification feature to your app id"警告甚至在 App ID 中显示启用推送通知后?

我正在使用Xcode8、swift3、iOS10在Targets->capabilities中显示“将推送通知功能添加到您的应用程序ID”。我检查了我的APPID,它显示在开发和分发中都启用了推送通知。使用相同的APPIS和证书,我在iOS9中收到通知,但在iOS10中我收到错误ErrorDomain=NSCocoaErrorDomainCode=3000"novalid'aps-environment'entitlementstringfoundforapplication"UserInfo={NSLocalizedDescription=novalid'aps-environmen

ios - 为什么 "add Push notification feature to your app id"警告甚至在 App ID 中显示启用推送通知后?

我正在使用Xcode8、swift3、iOS10在Targets->capabilities中显示“将推送通知功能添加到您的应用程序ID”。我检查了我的APPID,它显示在开发和分发中都启用了推送通知。使用相同的APPIS和证书,我在iOS9中收到通知,但在iOS10中我收到错误ErrorDomain=NSCocoaErrorDomainCode=3000"novalid'aps-environment'entitlementstringfoundforapplication"UserInfo={NSLocalizedDescription=novalid'aps-environmen

ios - 静默推送通知仅在设备正在充电和/或应用程序处于前台时发送

我已经实现了静默推送通知,但我注意到一些奇怪的行为。静默推送通知通过以下方式处理:-(void)application:(UIApplication*)applicationdidReceiveRemoteNotification:(NSDictionary*)userInfofetchCompletionHandler:(void(^)(UIBackgroundFetchResult))completionHandler静默推送消息似乎仅在设备正在充电(即连接电缆)和/或我的应用程序处于前台时才会收到。如果我断开设备与充电器(或Mac)的连接,则不再接收静默推送通知除非应用程序在前台

ios - 静默推送通知仅在设备正在充电和/或应用程序处于前台时发送

我已经实现了静默推送通知,但我注意到一些奇怪的行为。静默推送通知通过以下方式处理:-(void)application:(UIApplication*)applicationdidReceiveRemoteNotification:(NSDictionary*)userInfofetchCompletionHandler:(void(^)(UIBackgroundFetchResult))completionHandler静默推送消息似乎仅在设备正在充电(即连接电缆)和/或我的应用程序处于前台时才会收到。如果我断开设备与充电器(或Mac)的连接,则不再接收静默推送通知除非应用程序在前台

flutter_local_notifications : "PlatformException (PlatformException(INVALID_ICON, 找不到资源))

我正在尝试使用flutter_local_notifications插件向我的应用程序添加通知,但AndroidInitializationSettings需要可绘制资源并在未提供时抛出此错误:"PlatformException(PlatformException(INVALID_ICON,Theresourcecouldnotbefound.PleasemakesureithasbeenaddedasadrawableresourcetoyourAndroidheadproject.,null))"问题是不知道Androidhead项目在哪 最佳答案

flutter_local_notifications : "PlatformException (PlatformException(INVALID_ICON, 找不到资源))

我正在尝试使用flutter_local_notifications插件向我的应用程序添加通知,但AndroidInitializationSettings需要可绘制资源并在未提供时抛出此错误:"PlatformException(PlatformException(INVALID_ICON,Theresourcecouldnotbefound.PleasemakesureithasbeenaddedasadrawableresourcetoyourAndroidheadproject.,null))"问题是不知道Androidhead项目在哪 最佳答案

notifications - Flutter:如何仅当我们使用 local_notification 单击通知时才执行操作?

我正在使用local_notification显示通知,我想在单击通知时执行一个操作(例如,在新窗口中打开新信号的消息)。我试着用onNotificationClick:newNotificationAction(actionText:"Open",callback:openSignal(signalEventFromCloud[i]),payload:"Opensignal")回调函数为:openSignal(Signalsignal){Navigator.push(context,newMaterialPageRoute(builder:(context)=>newDetailSc

notifications - Flutter:如何仅当我们使用 local_notification 单击通知时才执行操作?

我正在使用local_notification显示通知,我想在单击通知时执行一个操作(例如,在新窗口中打开新信号的消息)。我试着用onNotificationClick:newNotificationAction(actionText:"Open",callback:openSignal(signalEventFromCloud[i]),payload:"Opensignal")回调函数为:openSignal(Signalsignal){Navigator.push(context,newMaterialPageRoute(builder:(context)=>newDetailSc