apple-push-notifications

How can I code sign an iOS .xarchive so a client can resign properly? (using push notifications)

Deadly 提交于 2020-01-01 03:20:30
问题 I need to create an iOS .xarchive file using a developer profile, that a client can resign using their distribution profile(s). (I have read this but it didn't have any real solutions: How can I send iOS app to client, for them to code-sign) The client doesn't want to share their private keys, nor give me access above 'Developer' in the member center. And we don't want to share our source code. We need to support push notifications, so this means we need a fully qualified app id. I cannot

Meaning Of Different Status Codes In APNS Error Response Packets

懵懂的女人 提交于 2019-12-31 10:20:10
问题 APNS returns the following status codes in error response packets when using the enhanced notification format. 0 - No errors encountered 1 - Processing error 2 - Missing device token 3 - Missing topic 4 - Missing payload 5 - Invalid token size 6 - Invalid topic size 7 - Invalid payload size 8 - Invalid token 255 - None (unknown) I want to know which of these status codes actually indicate that the issue is actually with the device token (ie: I can mark that particular device token in my

Custom iOS push notification sound

ε祈祈猫儿з 提交于 2019-12-31 09:05:14
问题 I have been facing an issue. I implemented push notification in iOS with custom sound. Its a MP3 file. It plays well when I receive a push notification in iOS 5, but in iOS4, it doesn't play any sound. Can you help me with this? The code is like this { "aps": { "badge": 10, "alert": "Hello", "sound": "sound.mp3" } } Nithin 回答1: According to the push notification guide: You can package the audio data in an aiff, wav, or caf file. Then, in Xcode, add the sound file to your project as a

Custom iOS push notification sound

梦想与她 提交于 2019-12-31 09:05:07
问题 I have been facing an issue. I implemented push notification in iOS with custom sound. Its a MP3 file. It plays well when I receive a push notification in iOS 5, but in iOS4, it doesn't play any sound. Can you help me with this? The code is like this { "aps": { "badge": 10, "alert": "Hello", "sound": "sound.mp3" } } Nithin 回答1: According to the push notification guide: You can package the audio data in an aiff, wav, or caf file. Then, in Xcode, add the sound file to your project as a

Push Notification Device Token?

旧城冷巷雨未停 提交于 2019-12-31 07:54:07
问题 How to get Device Token from my iPhone Device? 回答1: this method will print the deviceToken in console in debug mode, if you want to see the device token you can see in UIAlert also. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { NSLog(@"APN device token: %@", deviceToken); NSString *deviceTokenString = [NSString stringWithFormat:@"%@",deviceToken]; UIAlertView *deviceTokenAlert = [[UIAlertView alloc] initWithTitle:@

Apple Wallet Not Auto Updating Pass

醉酒当歌 提交于 2019-12-31 04:52:05
问题 Finally im able to push new changed compiled bundle. There is one issue im facing in order to see new changes. i have to go in my wallet card & disable "Automatic updates" then enable. then i can see my new compiled pass card. $result = $pdo->query($query); if($result->rowCount() > 0) { $myPass = $result->fetch(); $data = $myPass['data']; $nameFile = 'passbook_'.time().'.pkpass'; file_put_contents($nameFile, $data); $stream = function () use ($nameFile) { readfile($nameFile); }; return $app-

Problem generating APN SSL certificate after submitting to apple store

孤街浪徒 提交于 2019-12-31 04:02:41
问题 I'm having trouble getting Apple to generate an APN SSL certificate for my app ID. I've submitted the application to the Apple store, and it is pending review. I tested the application using an Ad Hoc app ID "${bundle_id}.adHoc" and everything went fine. I submitted to the Apple store with app ID "${bundle_id}.release". Now I want to generate my production APN SSL certificate for use with my release application ID - but the developer portal doesn't want to. When I upload my certificate

Apns php error “Failed to connect to APNS: 110 Connection timed out.”

末鹿安然 提交于 2019-12-30 18:56:14
问题 I have done apns code for php and objective c from this Apns code and setup certificate from this link Sandbox and production apns for sending notification to ios devices is working perfectly on my server.I moved code and same certificate to client server then sending notification is not working. I debug all php code and found that it stops at this line of code private function _connectSSLSocket($development) { $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert

Which method will be triggered when the notification received on iPhone(not after the notification is tapped and opened)?

雨燕双飞 提交于 2019-12-30 11:41:25
问题 I’m now using didReceiveRemoteNotification to get the payload of the notification pushed from Parse, however, it is only triggered when the notification is tapped and opened. What I’m trying to do is start an alarm to remind the user that a notification has arrived, so I guess didReceiveRemoteNotification is not what I’m looking for. Which method should I look into for this purpose? Thank you! 回答1: Words from The WWDC 2014 Whats New in iOS Notifications Local and push notifications let

Amazon sns (push notification) does not send to IOS application

旧城冷巷雨未停 提交于 2019-12-30 10:07:18
问题 Recently the app can not receive notification, the android side works fine but the ios one has fail so here is what I have attempt: 1) generate token from apple apn service 2) create the endpoint at amazon backend 3) publish the message at amazon backend 4) it does not receive message and the endpoint will go to disabled after a while. And I have checked the following: 1) try serveal ios device , including iphone/ ipad/ipod touch also the same result 2) checked the secret key/ platform arn it