apple-push-notifications

How to detect push notification sent to other apps?

做~自己de王妃 提交于 2019-12-02 07:16:11
I cannot seem to find a way to detect when a notification comes in. For example, if my app is open and the user gets a Facebook push notification\, is there any UIApplication notification or something else that will tell me that the app is no longer in the foreground and the Facebook alert is on top? Preferably something that is fired if the notification is a banner or an alert You cannot detect a push notification sent to another app. If you want to detect whether your app is not in foreground anymore, you can use the applicationWillResignActive: method of UIApplicationDelegate or register

Require.js with Phonegap and Push Notification for iOs

隐身守侯 提交于 2019-12-02 06:04:42
Im building an app with Phonegap, Backbone.js and Require.js. The app implements Phonegap Push Notification. At the moment, the loading of the scripts in index.html looks like this: <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" charset="utf-8" src="PushNotification.js"></script> <script type="text/javascript" src="js/app/index.js"></script> <script type="text/javascript"> app.initialize(); </script> <script data-main="js/app" src="js/require.js"></script> index.js looks like this: var app = { // Application Constructor initialize: function() { this

Can I use Apple Push Notification Service to have my app do something without notifying user in iOS 7

∥☆過路亽.° 提交于 2019-12-02 05:47:08
问题 My Algorithm wishes to work this way- If some desired event occurs at my server then I wish to send a small amount of data to every user my app (foreground or background). But, instead of notifying the user I wish my app to do some computation on data and acknowledge server. Remember user must not be notified. 回答1: You can use the content-available key in the push notification data and application:didReceiveRemoteNotification:fetchCompletionHandler: . It could be considered a bit of a hack

Renew Provisioning Profiles (Distribution) and keep current Appstore Apps working

徘徊边缘 提交于 2019-12-02 04:33:53
问题 I have an app on app store, which is using an iOS Provisioning Profile (Distribution) which is invalid. This Profile contains Push Certificate. so I want a regenerate Provisinig Profiles. Q. when I update Appstore app with renew Provising Profile, pushservice of current Appstore app version is working fine? (I just renew Provising Profile and same Certificate, same AppID) Thanks for your help on this :) 回答1: As you mentioned in your question that Provisioning profile is Invalid. So i guess

Apple Wallet Not Auto Updating Pass

[亡魂溺海] 提交于 2019-12-02 04:30:57
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->stream($stream, 200, array( 'Content-Type' => 'application/vnd.apple.pkpass', 'Content-length' =>

Media Attachment in iOS 10 Push Notifications

跟風遠走 提交于 2019-12-02 04:28:51
问题 I'm struggling with adding an image to my Push Notification in iOS 10. I have added a Notification Service Extension, and have used the following code: override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { self.contentHandler = contentHandler bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) if let urlString = request.content.userInfo["image-url"] as? String, let fileUrl =

How to customize short preview of notifications in iOS 10+

最后都变了- 提交于 2019-12-02 04:01:49
问题 I have implemented iOS rich notifications in my app based on Local and Remote Notification Programming Guide. I watched WWDC Introduction to Notifications, Advanced Notifications, and Best Practices, and read UNNotificationContentExtension. All of these show that I can implement Notification Content extension to customize notification presentation. But to me it seems that they all assume that we can customize only the expanded view (the view that opens up when we 3D press the short preview).

Parse Push Notification iOS

走远了吗. 提交于 2019-12-02 03:46:23
问题 I had the Push thing done over with at Parse.com (It was working and all) and then I was asked to create an account on parse for the company and set them up so they can manage it on their own. Well, not realizing that there was a Export button on the website, I deleted the app on my account and created an account for them and added the app to their account. I added all of the correct Certs and updated the App and Client keys and it wouldn't send it,and On the Push Notifications tab, it will

iPhone - App Uninstallation notification

半腔热情 提交于 2019-12-02 03:34:31
问题 How can I get a notification from App Store or APNs when my iOS App gets uninstalled? Also, if I send a push notification for the device where my App is uninstalled, what happens? Will Apple ban for such rogue Push notifications? 回答1: There isn't a way that your app will know if it is uninstalled. Also I do not believe there is anyway Apple will tell you if your app is uninstalled. Apples Push Notification Service's FeedBack Service does provide a way to know if a device cannot receive a

iOS Swift 3 Bundle Notification

╄→гoц情女王★ 提交于 2019-12-02 03:11:01
问题 In My App I am using firebase push notification. Problem is when user connected to internet after long time they will receive lot of notifications as individual notification. Is it Possible to Receive Notification like whatsapp(You have 10 New Notification). If user receives more than 1 notification at a time means we need to make it as Group or Bundle notification. 回答1: In order to bundle notifications in iOS, you'll have to specify a thread-id: Provide this key with a string value that