Initialize Finotes
You need to call Fn.init() function in the onCreate() function of Application class.
- Java
- Kotlin
public class BlogApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Fn.init(this);
}
}
class BlogApp: Application() {
override fun onCreate() {
super.onCreate()
Fn.init(this)
}
}
Testing Integration
Now that the basic integration of Finotes SDK is complete, let us make sure that the dashboard and SDK are in sync.
Step One
Add Fn.test() under Fn.init
- Java
- Kotlin
public class BlogApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Fn.init(this);
Fn.test();
}
}
class BlogApp: Application() {
override fun onCreate() {
super.onCreate()
Fn.init(this)
Fn.test()
}
}
Step Two
The application class (here BlogApp), should be registered in your manifest file.
Now run the application in a simulator or real android device (with an active network connection).
Step Three
Once the application opens up, open Finotes dash. The test issue that we raised should be reported.
In case the issue is not listed, make sure the right app and platform is selected at the top of the dashboard.
If the issue is still not synced in Finotes dashboard, Click Here.
Make sure to remove the Fn.test() API, else every time the app is run, a test issue will be reported.
SDK supports offline caching of issues that are failed to sync. Check out the Offline Caching section for details.
Now, SDK will report memory leaks, abnormal memory usages, ANRs, frame rate issues and crashes if they occur in your application.