apple-push-notifications

Is there possible make push notification without APNS

邮差的信 提交于 2019-12-04 02:58:46
I need to know if its possible to make push notifications without use the APNS. And if it can be done, what are the best options? Web server ->pushNotification-> Device What about the VoIP apps? --> Can we push notification without using APNs? Thanks. Aleem No, there is no way to use Push notification without APNS. This is restriction from Apple and is documented here No you can not push notification to a device without using Apple's push notification service. It is not possible to display push notifications for your application in the same way that the built in push notifications appear

iOS Push notifications not working on for ad hoc distributions with Test Flight

这一生的挚爱 提交于 2019-12-04 02:53:42
Having a bit of a weird issue... In my AppDelegate.m I have the following: -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:NO]; // Override point for customization after application launch. // Enable test flight reporting; https://testflightapp.com/sdk/doc/0.8.3/ [TestFlight takeOff:@"myTestFlightToken"]; // Let the device know we want to receive push notifications [[UIApplication sharedApplication] registerForRemoteNotificationTypes:

No Push Notification Capability in Xcode

空扰寡人 提交于 2019-12-04 02:44:46
问题 I don't know why, but the option Push Notifications of Capabilities in Xcode is not displayed. Why? I follow the developer guides, creating cers, enabling push in provisiong profiles, etc. I had refreshed the account in Xcode preferences. What I am doing wrong? 回答1: You need a apple account not free,Please see the picture: 回答2: Try checking all the following. Make sure Push notifications is turned on under developer.apple.com. If yes, then make sure you are running the same provisioning

Limits on iPhone push notification sounds?

不想你离开。 提交于 2019-12-04 02:33:51
Does anybody know of any limitations on the sounds that can be played when an iPhone app receives a push notification? Specifically, is there a maximum sound length? Also, I am assuming that the volume of the sound will match whatever the user has set their ringer volume to, and if set to vibrate mode, the phone will vibrate instead of playing a sound. Is this correct? I have tested the maximum length of a push notification audio alert, which not surprisingly turned out to be 30 seconds. Any longer audio files will result in the built-in Tri-tone alert being played instead. I don't know for

Firebase silent notification does not start up a closed iOS app

倖福魔咒の 提交于 2019-12-04 01:11:50
问题 Can FCM silent notification start up a closed iOS app? Request Type: POST Request URL: https://fcm.googleapis.com/fcm/send Request Headers: Authorization -> key=MY_KEY Content-Type -> application/json Request Body: { "to": "/topics/my_topic", "content_available": true, "data": { "contentAvailable": 1 }, "priority": 10 } However, this payload does not start up my iOS app if the user closes it. How to make the iOS to start my app whenever a silent notification is received? 回答1: It's the

#ifdef __IPHONE_8_0 code runs also on iOS 7

牧云@^-^@ 提交于 2019-12-04 00:54:05
问题 I've got the following code in my app - and I see some crashes on iOS 7 in the line with the comment. + (void)registerDeviceForRemoteNotifications { #if !TARGET_IPHONE_SIMULATOR if ([[KOAAuthenticator sharedAuthenticator] currentUser] != nil) { UIApplication *sharedApplication = [UIApplication sharedApplication]; #ifdef __IPHONE_8_0 [sharedApplication registerForRemoteNotifications]; // <--- CRASH HERE #else [sharedApplication registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge |

Use of undeclared type UNAuthorizationOptions

*爱你&永不变心* 提交于 2019-12-04 00:11:57
I am trying to use Firebase to handle push notifications. I have installed Firebase pod ('Firebase/Core' and 'FirebaseMessaging' pods). And after I imported Firebase to the project import Firebase I have configured the Firebase app like this( code is copied from official docs ): func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {FIRApp.configure() } After that I've tried to use this code ( code is copied from official docs ): if #available(iOS 10.0, *) { let authOptions : UNAuthorizationOptions = [.alert, .badge, .sound]

Can I use PushKit to do regular push with out using VoIP? Will it allow killed app to be launched in background if user does not act on notification?

人盡茶涼 提交于 2019-12-03 23:10:58
In the PushKit it is mentioned we can use regular push or VoIP push. But I did not find any documentation for what PKPushType to use for regular push. Did anybody try the regular push using the PushKit? If I don't use VoIP is it possible for a killed app to be launched in the background if it receives push notification? Meaning if app is killed and a notification comes and user does not act on it, can the app be launched by iOS in the background if I use PushKit? Since iOS 13.0, this is NOT allowed anymore. Apple will kill the app if failing to present CallKit before the didReceiveIncomingPush

Why iPhone don't receive push notification?

跟風遠走 提交于 2019-12-03 20:58:57
I really don't know where is the problem. I am using library ApnsPHP to sending Push notifications. I also tried other scripts, but that also not working. I generate push certificates with this tutorial (http://code.google.com/p/apns-php/wiki/CertificateCreation) and also put them to apple developer website. I get right token from iphone which i put into sample_push.php I have Macbook Pro 13-inch, Mid 2010 with Mac OS Lion. vojta:~/dev/www/application$ php sample_push.php Fri, 13 Apr 2012 16:23:24 +0200 ApnsPHP[6478]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... Fri, 13 Apr 2012

Handling push notifications while watchOS app is in the foreground?

天涯浪子 提交于 2019-12-03 20:47:27
I am building iOS + watchOS apps that need to notify users with updated information across all of the possible combinations of iOS and watch app states: when both the iOS and watchOS are running in the foreground, when they're both running in the background, and when one or the other is in the background. I am successfully handling push notifications for three of these four situations. Where I'm stuck is when the watch app is open in the foreground but the iOS app is in the background- I can't find any method for the watch Notification Controller, its ExtensionDelegate, or for the iOS