How it works

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 ...

Get Ionic Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.