To understand how the entire process works, let's summarize what you have done, as shown in the following section:
Set up your Apple Developer account by doing the following things:
- Creating an app ID
- Creating an app certificate (after creating a signing request locally via Keychain Access)
- Creating a provisioning profile
- Creating a push certificate
Set up your OneSignal App
Now, let's focus on the coding portion itself to understand how this works.
Inside NgModul, we added an Ionic Native wrapper for OneSignal in the providers array.
Then, in home.ts, In the constructor we initialized OneSignal by calling the oneSignalConfig() function. In the oneSignalConfig() function, we called the startInit function, which initiated the ...