Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aviary SDK update in Android

So we've been using Aviary SDK in our project for a long time, and no problems occured. But when we updated the Aviary version to latest, some strange behavior was revealed - when u first install application with new version of Aviary bundled on a device, which has version of app with older Aviary version, app crashes with exception -

FATAL EXCEPTION: IntentService[AviaryCdsService]
java.lang.IllegalStateException: Missing required api key secret

second run of installed app work as expected, and all functions are working properly. If device doesn't have previously installed app, no crash occured and installation runs fine. This behavior revealed when migrating from com.aviary.android.feather.sdk:aviary-sdk:3.4.3.351 to com.aviary.android.feather.sdk:aviary-sdk:3.6.3

Does anyone else had such problem, and is there any way to avoid this crash?

like image 584
VanKhulup Avatar asked Dec 16 '14 13:12

VanKhulup


1 Answers

Create application class and put below code in onCreate() methide

Intent cdsIntent = AviaryIntent.createCdsInitIntent(getBaseContext(), API_SECRET, null); startService( cdsIntent );

like image 69
Sanjay Chaudhary Avatar answered Oct 01 '22 10:10

Sanjay Chaudhary