apple-push-notifications

firebase iOS not receive push notifications

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 05:00:58
问题 I include google firebase in my app - create google account, create google app, upload APNS certifications (.pem and in work in another service), and send push notifications from console, and my app not receive it. In Firebase console i see status complete but Approximate number of devices is "-" Of course I updated provisions profiles and APNS cert func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Register for

iOS Push Notification Banner shown twice for a single Push

落花浮王杯 提交于 2019-11-28 04:39:29
I've noticed that sending a Push notification results in the following behavior: See how the banner is shown a second time, after a short delay? At first I thought that our backend was mistakenly sending 2 push notifications, one after the other. However, this appears to be default iOS behavior for a single Push notification. The banner is shown, then immediately "shown again". This results in this jittery UI shown in the gif. The banner appears to be received twice. Tested using iOS 9.0.2. I do not recall seeing this behavior from other apps that send me Push Notifications. Am I doing

iOS- How to integrate push notification in iOS 10?

亡梦爱人 提交于 2019-11-28 04:35:51
I have used following code for iOS 8,9 as: UIMutableUserNotificationAction *action1; action1 = [[UIMutableUserNotificationAction alloc] init]; [action1 setActivationMode:UIUserNotificationActivationModeBackground]; [action1 setTitle:@"REJECT"]; [action1 setIdentifier:NotificationActionOneIdent]; [action1 setDestructive:NO]; [action1 setAuthenticationRequired:NO]; UIMutableUserNotificationAction *action2; action2 = [[UIMutableUserNotificationAction alloc] init]; [action2 setActivationMode:UIUserNotificationActivationModeBackground];////UIUserNotificationActivationModeBackground [action2

iphone push notifications passphrase issue (pyAPns)

不羁的心 提交于 2019-11-28 04:35:29
I'm trying to implement push notifications for iphone based on PyAPNs When I run it on local but it blocks and prompts me to enter the passphrase manually and doesn't work until I do I don't know how to set it up so to work without prompt This is my code: from apns import APNs, Payload import optparse import os certificate_file = here(".." + app.fichier_PEM.url ) token_hex = '0c99bb3d077eeacdc04667d38dd10ca1a' pass_phrase = app.mot_de_passe apns = APNs(use_sandbox=True, cert_file= certificate_file) payload = Payload(alert = message.decode('utf-8'), sound="default", badge=1) apns.gateway_server

New APNS Provider API and PHP

不打扰是莪最后的温柔 提交于 2019-11-28 04:34:30
I started creating some code based upon this for sending push notifications from PHP. However now that I have understood there is a new API which utilizes HTTP/2 and provides feedback in the response, I am trying to figure out what I need to do to get that feedback. I haven't been able to find any tutorials or sample code to give me direction (I guess because it is so new). Is it possible to use the stream_socket_client() method of connecting to APNS with the new provider API? How do I get the feedback? All I get back from fwrite($fp, $msg, strlen($msg)) right now is a number. For all intents

no valid 'aps-environment' entitlement string found for application

一曲冷凌霜 提交于 2019-11-28 04:26:52
I am trying to configure my app to support push notification, but keep getting this error: Failed to get token, error: Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo=0x1f818fc0 {NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application} I did enable my app to support push notifications (only for development at this point). I did create the provisioning profile AFTER enabling the push notifications. My bundle identifier is the same as appears in the profile. In my profile file there is a

apns http2 api not returning status 410 after uninstalling app

落花浮王杯 提交于 2019-11-28 03:56:27
问题 Im using apns with http2 protocol for sending pushnotifications, the code i use is similar to this post: https://stackoverflow.com/a/34831873/1546652 When my app is correctly installed the apns http2 api works ok while sending messages, my reponse is something of the style : {"response":"","httpcode":200} The problem is that when i uninstall the app and send a pushnotification to the invalid registrationId i dont receive status 410 nor the response "reason:Unregistered" and still receive a

Multiple push notifications on 1 device - iPhone

我与影子孤独终老i 提交于 2019-11-28 03:43:16
问题 How to handle multiple push notifications on One device e.g: A user receives a notification saying you have 1 new message from my app. Before he checks that message another message comes in so now he has 2. Well I don't want 2 messages stacked in the notification bar, I want 1 notification saying there are 2 messages waiting. How do I implement this? And also if on device got 5 new notification and user taps last notification then how we got the previous notification userInfo - (void

iOS “thread-id” doesn't group push notifications

。_饼干妹妹 提交于 2019-11-28 03:42:14
问题 From the documentation: thread-id | string | When displaying notifications, the system visually groups notifications with the same thread identifier together. For remote notifications, the value of the threadIdentifier property is set to the value of this request header. Our push notification payloads: { aps = { alert = { body = "Leeroy J asked you: Test Push Notification"; }; badge = 12; sound = default; "thread-id" = 9150; }; n = "6kQ/0x6556"; r = 9150; } { aps = { alert = { body = "Leeroy

How does Facebook Messenger clear push notifications from the lock screen if you’ve read them on desktop?

与世无争的帅哥 提交于 2019-11-28 03:34:28
When I receive a message on Facebook I get a push notification on a lock screen (iOS). Then I read this message on desktop. Right after that this push notification disappear without any interactions with the phone. How can I implement the same thing myself for removing outdated notifications? The second usage could be stitching notifications together. For instance Instagram sends you a push when someone liked your photo. After 20 likes your notifications screen is ruined and unreadable. But using the same principal as Facebook does it seem to be possible remove previous notification of the