-
Notifications
You must be signed in to change notification settings - Fork 12
How to start Example application
Ivan Bilobrk edited this page Jan 23, 2025
·
2 revisions
How to start Example application 3.x version
For Mobile Messaging Plugin we've provided an Example app, which can be easily setup and started with your credentials:
- Copy-paste
examplefolder 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 and ANDROID_FIREBASE_SENDER_ID 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" />
<variable name="ANDROID_FIREBASE_SENDER_ID" value="sender id"/>
</plugin>- Add platforms, for iOS you will need to have ruby version
2.3.8with oldest version could be errors
cordova platform add androidcordova platform add ios
- To complete setup for iOS you need to open Xcode and select your development team for signing the app for
ExampleandMobileMessagingNotificationExtensiontargets
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
GeofencingDEPRECATED- Privacy settings
- In-app chat
- Migration guides
- Migration guide to version 7.9.x
- Migration guide to version 7.x.x
- Migration guide to version 6.2.x
- Migration guide to version 6.1.x
- Migration guide to version 6.x.x
- Migration guide to version 1.x.x
- Migration guide to version 2.2.x
- Migration guide to version 3.x.x
- Migration guide to version 4.x.x
- Migration guide to version 4.1.x
- Troubleshooting
- JSON Web Token (JWT) structure and generation example
- Trusted Domains Security