This is a sample Ionic app with Hotline SDK.
Once you have have set up Ionic,
-
Clone or download this project.
-
Add the required platform to it using the following code
ionic cordova platform add ios
ionic cordova run ios
- Add the hotline plugin to this project using the following snippet:
ionic cordova plugin add hotline
- Add the modified Hotline Push Plugin to this project.
cordova plugin add https://github.com/freshdesk/phonegap-plugin-push.git
-
Replace
<Your App Id>
and<Your App Key>
in app.component.ts with your Hotline account's App ID and App Key. -
Replace the
<Sender ID>
with your FCM Project's Sender ID. -
Then, to run it, cd into
ionic-sample
and run:
$ ionic cordova platform add ios
$ ionic cordova run ios
Substitute ios for android if not on a Mac.