-
Notifications
You must be signed in to change notification settings - Fork 3
9. Share system (sms, email..)
Dorian Milliere edited this page May 26, 2016
·
2 revisions
Share provide native button for user to send sms/mails/etc with default value.
To use native share system in your project, go to file assets/config/application.json and configure default value.
Example :
{
"defaultShareInformation": {
"text": "Come play with me ! Install Fiesta Ultima on your device, it's great game :)",
"subject": "Come play with me!!!",
"email": "my-email@gmail.com"
}
}
then call AppSharing.openShareDialog() method
You can also override default value from application.json by adding parameters :
AppSharing.openShareDialog(
"Come play with me ! Install Fiesta Ultima on your device, it's great game :)",
"Come play with me!!!",
"my-email@gmail.com"
)