apple-push-notifications

How can I customize a Push-Notification?

耗尽温柔 提交于 2020-03-26 04:02:32
问题 I am working on a project where I want to make Push notifications work, on Parse-Server (Heroku), with an iOS app. This is the code I use on the server side to generate a PUSH: const pushQuery = new Parse.Query(Parse.Installation); pushQuery.equalTo('deviceType', 'ios'); Parse.Push.send({ where: pushQuery, // Set our Installation query data: {alert: "ABCXYZ"} }, { useMasterKey: true, success: function() {}, error: function(error) { throw "Got an error " + error.code + " : " + error.message; }

Why I do not get push notifications from Firebase in Swift?

天涯浪子 提交于 2020-03-05 15:39:42
问题 I set this code in my AppDelegate: class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, FIRMessagingDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if #available(iOS 10.0, *) { let authOptions: UNAuthorizationOptions = [.Alert, .Badge, .Sound] UNUserNotificationCenter.currentNotificationCenter().requestAuthorizationWithOptions(authOptions, completionHandler: { (granted:

Why I do not get push notifications from Firebase in Swift?

隐身守侯 提交于 2020-03-05 15:36:33
问题 I set this code in my AppDelegate: class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, FIRMessagingDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if #available(iOS 10.0, *) { let authOptions: UNAuthorizationOptions = [.Alert, .Badge, .Sound] UNUserNotificationCenter.currentNotificationCenter().requestAuthorizationWithOptions(authOptions, completionHandler: { (granted:

Push notifications don't work Xcode 11.3.1

笑着哭i 提交于 2020-03-05 00:25:30
问题 Here is my situation: I generated a production push notification certificate. On Apple Developer Portal the certificate appears as: I have an Apple Dev Certificate and an Apple Distribution Certificate: I create an archive and distribute my app with Ad Hoc using Xcode 11.3.1. Here is the Ad Hoc summary: I have enabled push notifications but they don't work. I can't receive notifications when app is in the background. When I used an iPhone Distribution certificate in Xcode 10.3 notifications

Firebase push notifications not working with iOS

情到浓时终转凉″ 提交于 2020-03-03 06:01:21
问题 I want to implement push notification using Firebase Cloud Messaging I have setup my project and uploaded APN certificate as explained and I am sending Test messages using fcmtoken to my real device my configuration is as follows in AppDelegate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { FirebaseApp.configure() registerForPushNotifications(app: application) return true } func

APN BadDeviceToken iff running dev version

泪湿孤枕 提交于 2020-02-27 05:13:46
问题 The problem I'm not receiving Push Notifications to my app when I'm working on it, and the APN server returns " BadDeviceToken " . The situation I've got to be missing something simple here, this is the situation : When I send a Push Notification to my app downloaded from the App Store it works When I send a Push Notification from the same server, to the same version (*) of my app but built off Xcode, the APN server returns a status: '400' fail with the failed[0].response.reason:

can we check push notification in simulator? [duplicate]

不打扰是莪最后的温柔 提交于 2020-02-26 06:05:36
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How can I test Apple Push Notification Service without an iPhone? I want to know that can we receive push notification on simulator or not.also i want something like this tell me if it is possible.the app opens unregistered for push notification and when app terminates register for push notification. 回答1: The iPhone Simulator is unable to receive push notifications or successfully register for them. See the

How do iOS Push Notifications work?

戏子无情 提交于 2020-01-27 08:52:47
问题 How do iOS "push" notifications get delivered to a particular device without that device needing to poll a server? For example, let's say I have received a new message on Facebook. Facebook notifies Apple that my device should receive a notification as such. But how does Apple know which device/IP to push the message to? 回答1: It was too much for me to put in a comment so. From the documentation. Apple Push Notification service (APNs) propagates push notifications to devices having

How do iOS Push Notifications work?

感情迁移 提交于 2020-01-27 08:52:27
问题 How do iOS "push" notifications get delivered to a particular device without that device needing to poll a server? For example, let's say I have received a new message on Facebook. Facebook notifies Apple that my device should receive a notification as such. But how does Apple know which device/IP to push the message to? 回答1: It was too much for me to put in a comment so. From the documentation. Apple Push Notification service (APNs) propagates push notifications to devices having

Ionic - OneSignal doesn't work on iOS 13.x

主宰稳场 提交于 2020-01-25 08:53:42
问题 I have a problem with my ionic 3 app and OneSignal. The app working fine on Android version and iOS version 12.x, but in iOS 13.* nothing happends. Viewing in the OneSignal Dashboard the device not registered. I also don't get the playerid in my app (calling getIds() method). app.component.ts: constructor(platform: Platform, statusBar: StatusBar, private oneSignal: OneSignal, public api: ApirestProvider, private alertCtrl: AlertController, splashScreen: SplashScreen) { platform.ready().then((