Class Veery

serviceConnect()

Connect an activity to the Veery Agent. This should be called from the onCreate callback of all Activity objects where Veery is created.

This should not be called on non interactive classes like FirebaseInstanceIdService or FirebaseMessagingService.

Parameters

none

Returns

void

Usage / Example

 public class MapsActivity extends AppCompatActivity {

    private final Veery veery = new Veery(this);

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // ...Some initialization here...

        // TODO : Connect to the service and start it if it was off
        veery.serviceConnect();
        // TODO : declare your API KEY Secret
        veery.setApiKeySecret("SuPeRScrET12345789GhJ");
        // TODO : initialize firebase
        FirebaseApp.initializeApp(this);
        // TODO Let veery know the Firebase token
        veery.setFirebaseToken(FirebaseInstanceId.getInstance().getToken());

        // ...Some initialization here...
    }
    // ...
 }

User interaction

none