Checking Session Status


There are a couple scenarios where permissions can be enabled but a session has not started on the SMS SDK. These scenarios are:

  • The user granted permission via Android app settings
  • The sms SDK was opened, the user accepted the permissions, but for whatever reason (network issue, no connection, timeout) Pngme's API did not started a new session.

In these described scenarios, open permissions flow by calling SmsPngmeAndroid again. This should start a new session. Once a session starts, the SDK sends sms in the background.

To know if a session started, expose boolean operation isPermissionEnabledAndWasSessionStarted and use:

 bool value = await platform.invokeMethod("isPermissionEnabledAndWasSessionStarted");

Did this page help you?