Test still connected
BeantwortetHi everyone,
I'm using rainbow for the VOIP call and it work pretty well but, on Android after a long time on doze mode, when I make a new call, I can't see it on my phone.
I test the connexion with the line below and I get true.
RainbowSdk.instance().connection().isConnected
So, what can I do to be sure that the call is really well sending ?
Thanks for your answers.
-
Hi,
I got a reply.
For the moment, before allowing partners/dev to add needed certificates for PUSH for the company/appId on prod server, the only way is to not go in DOZE mode.
Here is a part of code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
{
String packageName = getPackageName();
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
if (!pm.isIgnoringBatteryOptimizations(packageName))
{
Intent intent = new Intent(Settings.ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS);
intent.setData(Uri.parse("package:" + packageName));
if (!getPackageManager().queryIntentActivities(intent, 0).isEmpty())
startActivity(intent);
}
}Please stay tuned for updates by subscribing to the newsletter from the Rainbow API Hub Web site https://hub.openrainbow.com (click on « Subscribe to the Rainbow API HUB Newsletter »).
Best regards,
Pascal
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare