Permissions Notification Push - ios

Implement push notifications in iOS with firebase and everything works very well if I install the application like this:
ionic cordova run ios -l -c -s
Ask for the permissions and also send the notifications correctly. However, when I install the application from Xcode, I do not receive the alert for the permissions, nor do I receive the notifications. From the Firebase console, I do not get any error either.

Note for users of Xcode 8 and higher.
If you're using the latest version of Xcode, you will likely need to activate the Push Notifications capability before your app is able to receive notifications.
To do this, simply navigate to the Capabilities section in your app's overview within Xcode and toggle Push Notifications
Important: Use Auth certification(p8) instead p12 ssl

Related

react-native-push-notification remote doesn't show when I test with real ios device with xcode

I'm using react-native-push-notification.
I'm trying to test push notifications, if I build app and upload it to testflight it shows remote notifications just fine, but when I do it with xcode build on a real device it doesn't react at all (I'm getting onRegister call and notification token though). This problem is only on IOS, android getting notifications in production and development. Can't google anything related so probably I'm missing something.
P.S. I'm using backend to send notifications through firebase
you have to go in capaibility in xcode and active PushNotification first
for more info see this
hope you have followed all the steps to get the APNS certificate and attached that to your xcode, before the build, if not please do so.
Also, in addition you need to have .pem file to add to your Firebase to make your ios app enable to send and receive push.

How Can I implement a cordova app for iOS that receive push notification using onesignal

I am developing a Cordova application using HTML and Javascript (Not Ionic). I need the app to receive the push notification.
I used OneSignal Cordova Push Notification Plugin to implement the push notification functionality. https://www.npmjs.com/package/onesignal-cordova-plugin
I followed the same steps mentioned in one signal to implement the push notification in Cordova https://documentation.onesignal.com/docs/cordova-sdk-setup
For android, I'm getting the notification without any issues but for iPhone, I'm not getting any push notification. I followed the steps as mentioned in the onesignal documentation like how to upload the apple cirtificate, other settings that I need to make in the app, etc.
When opening the app on the iPhone it is not asking for notification permission too.
Is there anything that I'm missing to implement? or is the plugin correctly working for iOS?

React Native how to set up push notifications with expo and firebase

I'm trying to create a messenger app with React Native and firebase for iOS, but I'm unsure of what route to take in order to enable remote push notifications every time a message is received. Every route I've looked at seems to require xCode to configure capabilities or requires me to edit a AppDelegate.m file, however I am developing on a PC so I'm not able to use xcode. I test the iOS app using expo and a physical iPhone. Is there any way to enable push notifications for my create-react-native iOS app under my specific circumstances of using a pc for development and firebase for my backend?
Is your app detached/ejected?
An undetached EXPO project doesn't support adding native libraries so the only way you can do push notifications is through the Expo push notification system. You may be able to get your firebase API to push data to a remote url using a webhook - in that case you can simply push a message to Expo's push notification endpoint once a user has completed an action, but you will need to find a way to store and retrieve their expo push notification token.
https://docs.expo.io/versions/latest/guides/push-notifications is the documentation for push notifications and https://exp.host/--/api/v2/push/send is the endpoint to hit to send a push notification.
There are some SAAS products out there that allow you to remote into a mac which you could try to use to setup your detached xcode project and then build using Microsoft App Center or something similar from that point on but the complexity increases.

IONIC FCM push notification ios , not able to receive

I am trying to using firebase push notification for IONIC 1. I am able to do it successfully in android. But in iOS i am able to add the FCM plugin and build it successfully. While opening the mobile app it ask for push notification permissions also.
But, when i try to send from the firebase notification. I am not able to receive notification in mobile.I have added the .plist to the project root directory and build it.
Do i need to do any configuration for IONIC 1 iOS?
Enable Push Notification in capabilities in XCode if your are using XCode 8 or higher.
Followings from Ionic site
Note for users of Xcode 8 and higher.
If you're using the latest version of Xcode, you will likely need to activate the Push Notifications capability before your app is able to receive notifications.
To do this, simply navigate to the Capabilities section in your app's overview within Xcode and toggle Push Notifications, as seen below.

how to install an enterprise app without having installation confirmation in iOS

I have a requirement to develop an iOS app(installer app) that can be used to download & install other enterprise iOS apps.The scenario is,Once I have installed the installer app,the server will send silent push notifications to the app.Once the push notification reached the app,it should automatically download & install the corresponding enterprise app from the server.I have uploaded sample enterprise applications to the server and tried to initiate them using
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:#"itms-services://?action=download-manifest&url=serveraddress/application.plist"]];
Using this functionality anyways,I can download & install the other app but it asks user's permission for installing the app.Is there any work around to skip this prompting and directly install the app?
Also is there anyway to initiate the above statement,even if app is not in the iOS dashboard(minimized) once the push notification is obtained.
To answer your questions, an itms-services request will always ask the user permission. The install modal is being generated by a system call and not your app, so unfortunately there's no cutesy way of using (for example) the KIF framework to simulate a button push in the confirmation dialog. There is currently no way to initiate an itms-services request when the app is in the background, the system request isn't queued, it's ignored because the app isn't in the foreground. iOS7 introduced the ability for a forced install capability for MDMs, which I believe can be a silent install. I haven't had a chance to play around with iOS9 much yet, but I doubt that it includes silent install without an MDM.

Resources