草庐IT

推送通知

全部标签

iOS 应用未收到 Firebase 通知

我有一个iOS10应用程序,我试图在其中设置对Firebase通知的支持。但是,当通过FirebaseCloudMessaging控制台(针对所有iOS设备)发送消息时,通知不会出现在我的设备上。我做了什么:已将APNs身份验证key上传到Firebase。输入keyID,并将团队ID作为AppID前缀。在Xcode功能中启用“推送通知”配置文件启用了“推送通知”服务将AppDelegate.m修改为以下内容:https://github.com/firebase/quickstart-ios/blob/master/messaging/MessagingExample/AppDele

ios - 面临设备未收到 Ios 通知的问题。相同的设置在 Android 上运行良好

使用fcm用于推送通知ios和Android请求:fcm=FCM.new(ENV["FCM_TOKEN"])options={data:{message:message},priority:'high'}response=fcm.send(device_tokens,options)响应:{:body=>"{"multicast_id":8122297942819980145,"success":1,"failure":0,"canonical_ids":0,"results":[{"message_id":"0:1505802064679190%9310a6bdf9fd7ecd"}]

ios - 在应用程序生命周期的另一个时间请求远程通知授权?

我遇到了一个奇怪的问题。当我使用以下代码在didFinishLaunchingWithOptions中请求远程通知授权时,我能够从我的服务器(Firebase消息传递)获得推送远程通知,但是当我稍后尝试请求授权时NOTINSIDEdidFinishLaunchingWithOptions我无法收到任何通知。我不想在发布时请求授权。例如,我想在用户登录后请求授权。Apple文档说:AlwayscallthismethodbeforeschedulinganylocalnotificationsandbeforeregisteringwiththeApplePushNotification

ios - 使用多个方案和推送通知配置配置文件

我按照以下文章为每个环境(dev、uat、release)在同一设备上多次安装相同的应用程序:https://medium.com/@danielgalasko/run-multiple-versions-of-your-app-on-the-same-device-using-xcode-configurations-1fd3a220c608我遇到了一个问题,我不确定如何解决。我们现在为每个环境都有一个唯一的bundleID。我们需要将应用程序的每种风格分发给用户,因此我们需要分发和开发配置文件。因为我们有多个方案,每个方案都有自己的包ID,所以我们需要为每个方案配置配置文件(由于推

ios - 如何从 Apple 的订阅服务器通知中获取 expiration_intent?

根据以下链接中的文档,当用户续订订阅时,Apple订阅状态​​服务器将发送此字段expiration_intent。Apple'sThisisthesameastheSubscriptionExpirationIntentinthereceipt.Postedonlyifnotification_typeisRENEWALorINTERACTIVE_RENEWAL.https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/S

ios - 为什么从 testflight 安装应用程序时 cloudkit 通知没有到达,而从 xcode 编译时它可以工作?

CloudKit通知不会到达生产环境(AppStore、TestFlight),但会在开发模式下工作(从Xcode安装)。为什么?这是我注册远程通知的方式:letcenter=UNUserNotificationCenter.current()center.delegate=selfcenter.requestAuthorization(options:[.alert,.badge,.sound]){authorised,errorinDispatchQueue.main.sync{application.registerForRemoteNotifications()}}这就是我保存

ios - 点击本地通知打开特定的 View Controller

标题说明了一切。我浏览了很多帖子,试图找到一个解决方案,但没有成功......我有一个通知,我不确定它的名字...letrequest=UNNotificationRequest(identifier:"timerDone",content:content,trigger:trigger)q1:名称是timerDone吗?在viewDidLoad()中:NotificationCenter.default.addObserver(self,selector:"SomeNotificationAct:",name:NSNotification.Name(rawValue:"timerDo

ios - Xcode 9 - Xcodebuild 错误 - UI 测试未运行,等待 AX 加载通知超时

我的测试没有开始执行,每次我尝试使用xcodebuild命令时总是超时。我使用的命令如下:xcodebuild-workspaceApp.xcworkspace-scheme'AppName'-sdkiphonesimulator-configuration'UI_Automation'CODE_SIGN_STYLE='Manual'CODE_SIGN_IDENTITY='iPhoneDeveloper:JohnSmith(XXXXXXXX)'PROVISIONING_PROFILE_SPECIFIER='JohnSmithPPName'DEVELOPMENT_TEAM='ABCCom

ios - 实时数据库触发器和推送通知 Firebase 和 iOS

我正在关注有关如何基于实时数据库触发器实现推送通知的GitHub代码。这是代码和链接:https://github.com/firebase/functions-samples/blob/master/fcm-notifications/functions/index.js/***Copyright2016GoogleInc.AllRightsReserved.**LicensedundertheApacheLicense,Version2.0(the"License");*youmaynotusethisfileexceptincompliancewiththeLicense.*Yo

c# - 应用程序关闭时 Xamarin.Forms iOS 推送通知

有没有办法在iOS下接收推送通知,即使应用已关闭(强制关闭)?只有当应用程序在后台打开或处于事件状态时,我才会收到推送通知。其他应用程序如何实现这一点,例如:WhatsApp? 最佳答案 thesystemdoesnotautomaticallylaunchyourappiftheuserhasforce-quitit查看“讨论”部分:https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623013-applicationWhatsApp是一个