![]() ![]() ![]() Look for the Add iOS platform option and click it, Firebase then will ask you for the Bunddle ID (the one you just created at the Apple Developer Page), type it and click next.Add a new Project with the name of your app.p8 format.Ĭreating the Firebase project and uploading the Key from Apple. Before clicking DONE, check for the Key ID (Example: Key ID: GAMDX77N7L) copy this text to a safe place, and finally download the Key to your computer (this Key won’t be downloadable later, so save it to a know place in your computer), this key will come in a.Check the Apple Push Notification Service (APNs) checkbox, press Register.Head to Keys in the Apple Developer page, and generate a new one with the name you want. Now let’s generate a Key, this one its going to be uploaded later to the Firebase Console.Generating a Key to allow Firebase communicate with your app. Look for the “ Capabilities” section and check the Push Notifications service and then press Continue.Remember this must be the same configured in the config.xml file in your cordova project. It’s important to remember your Bundle ID as we are going to need it for the Firebase project configuration. Type the Bundle ID you are going to use for publishing your app.Login to your Apple Developer account to create a App Identifier for your app.Registering your app with Apple to activate push notification service. First, lest’s do the iOS and Firebase Console configuration: The following steps are for those who already have a Cordova app o are going to build one with frameworks such as Angular. A Google account (For the firebase configuration).A paid Apple Developer Account(to enable and test push notifications).In the previous guide from Felipe, you had to generate a Certificate to allow commuinications between Firebase and the iOS app, but this is no more neccesary, Apple and Google now recommend you to insted use Key. In order to send push notifications to your cordova app you will need: Note: If you are creating a cordova project from an existing project made with another framework, you must Note: As pointed out from the author, its important that if you have any of previous plugins of Firebase installed in your project (Cordova Firebase or Cordova Firebase Library), you delete them first and the install the new one: rm -Rf platforms/android cordova plugin rm cordova-plugin-firebase rm -Rf plugins/ node_modules/ npm install cordova plugin add cordova-plugin-firebasex cordova platform add android This guide uses the newly updated FirebaseX plugin for Cordova projects, this is a fork of the original Fireb Base Plugin, and its based on the example project founded in the plugin’s npm site. I decided to post this guide, when working in a Cordova project at my job as a Front End Developer at Binmatter. This is a updated guide for 2020, from the one posted from Felipe Evangelista in 2017.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |