Environmentclass so you can use our
Environment.Sandboxto test the app and then you must move to
Environment.Prodonce the app is ready to be launched to real users.
startmethod is called when permission are approved and user already accepted terms and condition, it will not open the popup since there is no action needed from user.
PngmeSdkis sending SMS you can send extra data regarding user information and user's loan.
registerUser()method. But it's possible that for any reason some of the user's data was changed on your app and you want to notify the change to Pngme in order to keep the records updated and consistent.
hasPermissionfunction. This will return a boolean:
startmethod again. Once a session starts, the SDK will start sending SMS data on the background. To know if a session was started, expose the boolean operation:
needInitOfSDKand can be use on that way:
worker managers. For certain devices, configurations or android customization layers this
worker managerscould be stoped. Ex: devices the OS put the unused apps to sleep, in order to save energy. To avoid this situation we expose
forceSentSMSmethod. We highly recommend to call this method as soon your app opens, so every time that you app is opened you ensure to send all SMS that were not be sent previously.