Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SMS after install application

Tags:

android

sms

I created an application and immediately after install I need to send a text message to a central server configuration.

How I can do that?

In applications such as WhatApps, just after installing you receive an SMS configuration. Anyone know how to do that.

like image 861
angel Avatar asked Jul 27 '26 21:07

angel


1 Answers

check for a boolean flag in shared preferences .

do stuff if not exist and insert this flag to sharedPrefeences .

sharedPreferences get deleted if user clears the data of app so better approach i will say is

you manage device_id on server and do the same thing .

like image 122
Shailendra Singh Rajawat Avatar answered Jul 29 '26 12:07

Shailendra Singh Rajawat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!