apple-push-notifications

iOS Push Notification code execution on receive

时间秒杀一切 提交于 2019-12-06 10:55:17
问题 I am developing messaging app for iOS. I keep users' phone numbers to the server but I don't keep contact names on the backend side. When the user receives push notification from the server, server sends phone number and message content to the user in notification payload. I implemented application:didReceiveRemoteNotification:fetchCompletionHandler method to show local notification. I look up in local database for phoneContactName:phoneNumber pair and show local notification in the format:

iOS push notification not working using PHP

霸气de小男生 提交于 2019-12-06 10:35:08
I am trying to implement push notification in iOS in PHP using APNS library. Here is my code : <?php // Put your device token here (without spaces): $deviceToken = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // Put your private key's passphrase here: $passphrase = 'XXXXXX'; // Put your alert message here: $message = 'My first push notification!'; //////////////////////////////////////////////////////////////////////////////// $ctx = stream_context_create(); stream_context_set_option($ctx, 'ssl', 'local_cert', 'Certificates.pem'); stream_context_set_option($ctx, 'ssl', 'passphrase', $passphrase); // Open

no valid 'aps-environment' entitlement string found for application while debugging on xamarin for ios

落爺英雄遲暮 提交于 2019-12-06 10:24:26
I am working on xamarin for ios. Its was working on my older machine. But, then i had to switch to new machine and recreate all the certificates and everything for the new machine. I have created the app ID. Then created the aps certificates and then created the provisioning profile. In Debug I have provided the downloaded provisioning profile. But still I am getting this same error. And my app is unable to get the device token. I am searching a lot since last night. And have done the following things with no success: Regenerating provisioning profile and trying with the new one I also deleted

How to post push notifications in APNS and how to show the notifications in iPhone?

橙三吉。 提交于 2019-12-06 10:14:58
I have several doubts about APNS. Am trying myself to make clear on the APNS but still need some clarifications. I have to know how we are posting push notification in APN Server and how we push the notification to Apple APN Server? And also how am i receive the notification from Apple and show the notification to user? I know we are receive the Notifications from below delegate, -(void)application:(UIApplication *)app didReceiveRemoteNotification:(NSDictionary *)userInfo How we should show the notifications to the user , please suggest any sample codes? Please clarify my silly doubts. Thanks

No Devices Registered with Parse Push and Xamarin IOS

偶尔善良 提交于 2019-12-06 08:52:40
I am trying to set up push notifications with Parse Push and Xamarin IOS. I have followed these guides: https://www.parse.com/docs/dotnet/guide#push-notifications-push-on-xamarin-ios https://www.parse.com/apps/quickstart#parse_push/ios/xamarin/existing https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/ios/remote_notifications_in_ios/ https://groups.google.com/forum/#!topic/parse-developers/65WAfRIiEnA From my understanding of those I modified my AppDelegate as such, I added this to the constructor: ParseClient.Initialize("MY APP ID", "MY DOT NET KEY");

how to validate Apple APN device token - WCF .NET

杀马特。学长 韩版系。学妹 提交于 2019-12-06 08:46:37
问题 I am building a WCF REST web service that is called by the mobile app to insert the Apple device Token into the database. I would like to validate a device token before inserting into the database. Is there anyway to validate a device token to know if it is valid?? I have searched around the forum and could not find any sample code (in .NET) to do this, there were recommendations that I should use the Apple FeedBack service but how do I do that in .NET?? Could anyone please provide me a piece

How to secure app - backend communications?

谁说我不能喝 提交于 2019-12-06 07:55:34
问题 I have one iOS app and also a small backend that I use so far to manage the apns (Apple Push Notifications). The registration process is just a GET call with parameters to my backend, and since there is no 'authentication' or any other kind of control, I fear that anybody could just overload my backend with fake devices registering. So the main question is: how could I make this kind of app-sending-info-to-backend transmissions secure when there is no authentication? One simple idea that

iPhone: Increment badge counter automatically [duplicate]

ぐ巨炮叔叔 提交于 2019-12-06 07:43:24
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Push-Notification Badge auto increment. I have implemented Push Notification for my iPhone application. Whenever I get the message, I want to increment badge value by one so I need not to pass it in Push Notification payload. Is it possible? From here I learnt that I have to manage that from server side, so that's the only way? I had to store the previous value in Database and get the last value whenever I send

Is aps dictionary necessary in iOS notification payload? Can we have same payload for iOS and Android?

ⅰ亾dé卋堺 提交于 2019-12-06 07:28:39
I just started working on notifications on iOS and it seems that apple has defined a format for payload to receive notifications. So currently, I am using this payload and everything is working as expected. I am getting title, subtitle, body sound, image. {"aps" : { "alert" : { "title" : "Introduction To Notification", "subtitle" : "Session 707", "body" : "New Notification Look Amazing" }, "sound" : "default", "category" : "message", "badge" : 1, "mutable-content": 1 }, "attachment-url": "https://pusher.com/static_logos/320x320.png" } Lets say I want to have a single payload for both Android

iOS Push Notification SSL Certificate

会有一股神秘感。 提交于 2019-12-06 07:27:29
Is the certificate generated to send push notifications specific to the server, or I can use it on any other server, if I change my server? Thank you. You can use it in any server. Apple push notification SSL certificate is not specific to any server. Example: parse.com, xtify.com etc. You can use it on any server -- its the certificate and its corresponding private key that matters, not the IP from which the connection is made. You can use it in any server. Apple push notification SSL certificate is not specific to any server. https://developer.apple.com/library/archive/documentation