Mohit Goenka • about 10 years ago
API Key for App using Alphonso Services
For using the app, I need an API Key that I could integrate with my app. I tried using API keys from one of the sample apps, but it doesn't look like it's working.
I am getting AlphonsoService initialization failed. error.
Comments are closed.

12 comments
Ashish Chordia • about 10 years ago
Mohit - This is Ashish. Team is looking into this and will have an API key for you soon.
Ashish Chordia • about 10 years ago
Mohit -- Can you please try with the following key and let us know how it goes.
"Alphonso-c-sdk-testapp-API-key-43idjk3209vBkjzckjhw984KJ"
Mohit Goenka • about 10 years ago
Still no luck, see if this helps:
02-20 22:39:41.348 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.ASClientFSM: Processing SERVICE_CONNECTION_UP event in tv.alphonso.service.client.ASClientInitInProgress state.
02-20 22:39:41.348 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.ASClientInitInProgress: AlphonsoService connected!
02-20 22:39:41.348 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.ASClientInitInProgress: Sending INIT message to AlphonsoService.
02-20 22:39:41.696 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.ASClientFSM: Processing SERVICE_CONNECTION_DOWN event in tv.alphonso.service.client.ASClientInitInProgress state.
02-20 22:39:41.696 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.ASClientInitInProgress: AlphonsoService disconnected...!
02-20 22:39:41.696 2417-2417/com.mgoenka.movienow D/tv.alphonso.service.client.AlphonsoServiceClient: AlphonsoServiceClient instance destroyed.
02-20 22:39:41.715 2417-2417/com.mgoenka.movienow E/com.mgoenka.movienow.MainActivity: AlphonsoService initialization failed!!!
Ashish Chordia • about 10 years ago
Thanks Mohit! Naren who is our lead is joining here and will look at it shortly.
Naren Sirugudi • about 10 years ago
Hello Mohit, This is Naren.
Alphonso SDK uses the microphone to read audio. So emulator will not work.
You can can use your mobile phone, any version will do above 11 will do. Make sure that the CompileSDKVersion is 22 or lesser. The MinSDKVersion can be set to your phone's version or any other lower version. We support upto api level 11.
Mohit Goenka • about 10 years ago
Thank you so much, Naren!
Aniket Gawade • about 10 years ago
Can you please provide another API Key the existing one is not working again?.
Naren Sirugudi • about 10 years ago
Aniket,
I am sure the API key will work. Just make sure you kill your app properly before restarting.
Aniket Gawade • about 10 years ago
Thanks Naren but problem still persist :(
Aniket Gawade • about 10 years ago
Can you please quickly send one API key just for presentation.
Ashish Chordia • about 10 years ago
Aniket - please use
"Alphonso-c-sdk-testapp-API-key-43idjk3209vBkjzckjhw984KJ"
Naren Sirugudi • about 10 years ago
Ankit, Mohit,
In case you are still having the initialization issues, please try the following build 1.0.30-debug: https://drive.google.com/a/alphonso.tv/file/d/0B-HYMcEEPP20RG9JSlJvM2Z5Q2M/view?usp=sharing
As the name suggests, this build is functionally identical but has debug logs enabled. Before you try this build, please ensure you force-stopped/force-killed you apps on your device. Once the issue is reproduced, send me the logs. My hunch is that the issue you are facing is probably not a api-key issue and possibly something else.