apple-push-notifications

Push notifications quotas in GCM and APNS

ぃ、小莉子 提交于 2019-12-11 16:31:50
问题 I am creating a mass marketing application where I can send coupons to all of my subscriber base which can be a few millions people and I should be able to send coupons through out the day as many times I want. So,my confusion is will my mission be hindered by any kind of quotas like amount of push notifications in a day/week/month on these popular services.Also,is there any possibility of my app getting banned for sending so many messages to people. My app won't spam the user with irrelevant

Correct way of sending IOS Bulk push notifications in PHP

泄露秘密 提交于 2019-12-11 16:08:26
问题 I am trying to send push notification on IOS using PHP there are 300,000 device tokens I have written a small routine, on each execution the routine send notification to 100 devices, and after 1 second delay routine is executed again and notification is sent to next 100 devices, routine is as follows $body['aps'] = array('alert' => 'Energy is full', 'sound' => 'default', 'badge' => '0' ); $url = 'ssl://gateway.push.apple.com:2195'; $ctx = stream_context_create(); stream_context_set_option(

Sending multiple iPhone notifications

青春壹個敷衍的年華 提交于 2019-12-11 15:50:09
问题 My code works ok when I need to send one notification, but each time when I need to send more than one, it only sends the first one. Here is the code: <?php $device_token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; $apnsHost = 'gateway.sandbox.push.apple.com'; $apnsPort = 2195; $apnsCert = 'apns-dev.pem'; $streamContext = stream_context_create(); stream_context_set_option($streamContext, 'ssl', 'local_cert', $apnsCert); $apns = stream_socket_client('ssl://' . $apnsHost . ':'

How to present apns token in view controller? [duplicate]

流过昼夜 提交于 2019-12-11 15:18:46
问题 This question already has answers here : How can I convert my device token (NSData) into an NSString? (28 answers) Closed 2 years ago . I don't understand how to present the apns token as a string in view-controller. tried a lot of things and nothings worked out. in swift 4. 回答1: 1. You can save it to UserDefaults as Halil suggested like so: UserDefaults.standard.set(yourAPNSToken, forKey: "APNSToken") And retrieve it inside your ViewController: let token = UserDefaults.standard.string(forKey

iOS 13 PHP Script payload for Push notification

ε祈祈猫儿з 提交于 2019-12-11 14:59:52
问题 I just come to know that iOS 13 have changed Push notification device token and Payload. I have update App and published it. Now, We have server in Php, We send both alert and silent notification to the users. I have gone through "https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns" Apple Documentation, but I am still not able to understand how can I pass new headers in payload. Here is the my Php Script. <

Apple Push Notifications: Not receiving device token?

烈酒焚心 提交于 2019-12-11 14:59:43
问题 In an app which involves push notifications, I am receiving device tokens just fine but the my client's device doesn't receive device token (hence causing failure to receive push notifications). I am using Parse for push notifications. This is what I have in my AppDelegate : -(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken { // Store the deviceToken in the current installation and save it to Parse. PFInstallation

Invalid Token, error while sending push notification

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 14:58:26
问题 I am trying to send push notitfication to ios using worklight. But while sending it, IDE shows invalid token id error in logs. I am trying this by signing my app using sandbox certificate. Please help. I am successfully send notification to android. 回答1: Can you add the actual full error from the Xcode console and Worklight Server? Meanwhile, make sure everything is set-up correctly. The Developer Certificate, the PNS certificate, the App ID, provisioning profile, ... You can follow this

APNs certificate missing private key when generating with custom keychain

此生再无相见时 提交于 2019-12-11 14:41:54
问题 I was trying to generate a new APNs certificate for my app on our build server but when I got to the "Export 2 items" step for the Certificate and Private Key, I found that I didn’t have two items. My certificate didn’t have any private key with it. I can see in my keychain that the certificate belongs to the System keychain whilst the public and private key are in my CI-Jenkins keychain . I repeated the process on my development machine and it worked fine there. The only difference being

“Invalid Token” while sending PushKit notification in production environment

时间秒杀一切 提交于 2019-12-11 14:31:36
问题 Im trying to send VoIP notifications via PushKit, but in Production(Distribution) environment, I get "Invalid Token" from server. everything works fine in development env with same certificate and url: ssl://gateway.sandbox.push.apple.com with port: 2195 but when i change the url to: ssl://gateway.push.apple.com , I get "Invalid Token" error with no extra data 回答1: Looks like you are using same Voip device token generated by Client in sandbox environment for both sandbox as well as production

Can we send push notifications between two apps using quickblox?

半世苍凉 提交于 2019-12-11 13:55:28
问题 In my application, I am using Quick blox for chat and push notifications. I have two applications agentapp and seeker app. Can I send push notifications through Quick blox between these two apps as I've added only one app over quickblox. 回答1: QuickBlox has functionality to send pushnotifications and chat messages per application. Two QuickBlox applications are not connected and Chat is set per application. Also, here is information on how to setup automatic push notifications for offline