-
Notifications
You must be signed in to change notification settings - Fork 12
[3.x] How to start Example application
Alexander Boldyrev edited this page Nov 8, 2022
·
1 revision
How to start Example application 2.x version
For Mobile Messaging Plugin we've provided an Example app, which can be easily setup and started with your credentials:
- Copy-paste
example
folder outside of plugin folder (sometimes it may cause unexpected errors if example project folder is inside plugin folder) - Provide your application code in
/example/www/js/app.js
var APP_CODE = <your application code>;
- Add plugin
cordova plugin add com-infobip-plugins-mobilemessaging
- Provide IOS_EXTENSION_APP_CODE, IOS_EXTENSION_APP_GROUP to be able to add notification service extension automatically in
/example/config.xml
.
<plugin name="com-infobip-plugins-mobilemessaging" spec="...">
<variable name="IOS_EXTENSION_APP_CODE" value="application code" />
<variable name="IOS_EXTENSION_APP_GROUP" value="extension app group" />
</plugin>
-
Get the Firebase configuration file (google-services.json) as described in
Firebase documentation
and put it to the root application folder. -
Add platforms, for iOS you will need to have ruby version
2.3.8
with oldest version could be errors
cordova platform add android
cordova platform add ios
- To complete setup for iOS you need to open Xcode and select your development team for signing the app for
Example
andMobileMessagingNotificationExtension
targets
If you want to change bundle id, you could change widget id in /example/config.xml
and rebuild ios platform
If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.
- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
- Geofencing
- Privacy settings
- In-app chat
- Migration guides
- Troubleshooting