Skip to end of metadata
Go to start of metadata

Welcome to the useful commands section

Here, we suggest you some methods in order to quickly and efficiently perform certain actions within the SDK. 

9.1 Activate logging

Configure logging application


In order to benefit from Accengage support, it is crucial and mandatory that you respect the following steps, which enable you and Accengage to have access to certain infos and logs that will provide valuable context if there is an integration issue.

 

The following configuration is mandatory if Accengage teams need to test the SDK integration. Without it we won't be able to to help you to solve your issues.

Accengage provides an application (called ACC Infos) that will in a first hand help you to identify your own device for testing, and in the second hand will provide a contextual logs to the Accengage technical support team during SDK integration, when there is an unexpected behavior.

In order to be able to use our application, you will need to:

  1. add the url schemebma4sreceiver to the scheme whitelist in your application (as explained in the section  "Configure URL Schemes")
  2. add a localhost exception to the App Transport Security  key in your Info.plist.

 

Enabling console logs

Following this step, you will need to activate the library option which turns on logging.

These logs help you to better understand the integration of the library and verify if it works as intended. These logs are also mandatory for support team who study problems you may have

This is a mandatory step.

    9.2 Stopping the SDK

    The following instruction allows you to stop all the SDK services currently running :

      Important

      The suspension is persistent. If you stop all the SDK services in session A, the suspension will be kept in session B even if the app is relaunched.

      9.3 Get the device ID


      You may need the device ID. You can get it by using the following instruction from anywhere in your code :

        9.4 Disable all network calls

          9.5 Check notification provider

          To check if the given notification was provided by Accengage servers use the isAccengageNotification: method:

            9.6 Get the SDK version

            In some case you may need to get programmatically the current Accengage’s SDK version. You can get it by using the following instruction from anywhere in your code :

              9.7 Rating and review prompt

               

              This feature allows the users to rate and review applications without ever having to leave the app.

              The feature is available on iOS 10.3 and above.

              Important

              The notation popup can be displayed only 3 times per application and per year. Make sure to read carefully the Apple documentation before using the feature.


              In order to display the prompt, you'll need to add the parameter "accrating" to your URL Scheme template. Parameters string must begin with a "?" and parameters should be separated by a "&".

               

              Example of valid URL Scheme : your_app://your_page?accrating


              You can ask the Accengage SDK to display the prompt in the following cases:

               

              • The URL associated with the Push action
              • The URLs associated with the interactive Push button actions
              • The URLs and redirections loaded in web In-App content
              • The URLs associated with In-App actions
              • The URLs associated with Inbox message actions
              • Incoming URLs handled by the application:openURL:sourceApplication:annotation: or application:openURL:options: method of your AppDelegate.

              • No labels