I am trying to integrate Awareness API on a new project and I am stuck with an error saying: ACL_ACCESS_DENIED Status Code: 7503.
I have integrated Awareness API on other projects as well, but the last time I encountered that error, it was due to the lack of declaration on a needed permission, for the DetectedActivity feature to work.
This time though, I am just using the Location feature of the Awareness API.
I have also tried to change API keys, regenerate them and even enable/disable the API itself, from Google API Console, but without any luck.
I also have a proper Google Services JSON file and the version of Play Services I am using is: 10.0.0
compile 'com.google.android.gms:play-services-awareness:10.0.0'
Below is the code I am using:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET"/>
<meta-data
android:name="com.google.android.awareness.API_KEY"
android:value="MY_API_KEY"/>
this.googleApiClient = GoogleApiClient.Builder(this)
.addApi(Awareness.API)
.addConnectionCallbacks(this)
.enableAutoManage(this, this)
.build()
Awareness
.SnapshotApi
.getLocation(googleApiClient)
.setResultCallback {
handleLocationResult(it)
}
I have done a lot of Google searching as well, but no hints other than a SO post talking about the same error on Emulators. I am not trying it on an Emulator. I am using a real device to test it.
If anyone has any ideas, I would be grateful!
Thanks in advance!
Apparently, AwarenessAPI does return such an error for different cases.
The Status Code: 7503 will be returned even if you:
Missing a Permission from your Manifest, such as the one for DetectedActivity
Have the Location setting off when requesting a Location snapshot (it does not cause the Location Settings dialog to pop-up)
I will leave it here, in case someone else stumbles upon such a case, in the future!
Related
I've tried to use GooglePlayServices Vision package in my app. I've tried in 4 devices and 3 give me that "dependencies are not yet available" on
BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(context).build();
if(!barcodeDetector.isOperational()){
//show dependencies are not yet available
}
The problem is that even if I close and reopen my app, when I go in the ScanQRCodeActivity i obtain always this error.
So I've seen for the PlayServices availability though
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance();
if(googleAPI.isGooglePlayServicesAvailable(this) != ConnectionResult.SUCCESS) {
//show dialog
}
but it returns always SUCCESS.
My manifest have meta-data
<meta-data android:name="com.google.android.gms.vision.DEPENDENCIES" android:value="barcode" />
And my gradle have the
implementation 'com.google.android.gms:play-services-vision:15.0.2'
Anyway, the only thing that works for me is Clear data of Google Play Services, but people that use my app don't know this.
Have you any idea?
Thanks.
From this SO post, same problem was encountered. You may pick some important points there. Also when you visit the Google Play Services 9.2 bug fixes, there are some tips that you can follow to resolve some issues.
I want to integrate AppSpeed Parameter in my Android Application, for that I have used the following code:
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
// Build and send timing.
t.send(new HitBuilders.TimingBuilder()
.setCategory(getTimingCategory())
.setValue(getTimingInterval())
.setVariable(getTimingName())
.setLabel(getTimingLabel())
.build());
and called the above sendmethod with appropriate methods, but App Speed section of my portal is still blank. How it will show the data ??
Thanks
Use this:
t.sendTiming(loadTime, "resources", "high_scores", null);
To have in mind that the tracks of timing (App speed) sometimes are not refresh immediately like Events and Screenviews in Google Analytics Console. In my case, I had to wait a few hours to see the results. Also check to have in AndroidManifest.xml the following:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
I am using this tutorial to create a autocomplete search box. I have created a custom adapter to populate my autocomplete text box. the following code should give me autocomplete suggestions.
mGoogleApiClient = new GoogleApiClient.Builder(MainActivity.this)
.addApi(Places.GEO_DATA_API)
.enableAutoManage(this, GOOGLE_API_CLIENT_ID, this)
.addConnectionCallbacks(this)
.build();
PendingResult<AutocompletePredictionBuffer> results =
Places.GeoDataApi.getAutocompletePredictions(mGoogleApiClient,
constraint.toString(),
mBounds, null);
unfortunately this gives me an error:
{statusCode=ERROR_OPERATION_FAILED, resolution=null}
I checked the official documentation, there are no reference of ERROR_OPERATION_FAILED error.
There are no problems with my API key I guess, because I had another application with a working API key. I used the working API key in this application, still it is not working.
I tried turning off mobile data. Surprisingly the error is still there. The error comes instantly as I type (i.e. It looks like its not even going to the google service at all).
what could be the reason of this error?
The AndroidManifest.xml should include permission :
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
and tag
<meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version"/>
I use crittercism for my app. Here is what i do to initialize Crittercism:
I only use the following permission:
<uses-permission android:name="android.permission.INTERNET"/>
and i initialize Crittercism like the following:
Crittercism.initialize(getApplicationContext(), "MY_APP_ID");
I do nothing else.
I can see some information about app installs etc, but i cannot see crash reports. I do the following when i click a button in my app and deliberately crash the app:
public void onClick(){
Integer i = null;
i++;
}
But i cannot see the crash report of this situation. Can anyone tell me why? Do i need to add mappings.txt file etc.?
Thanks
As the official Crittercism documentation says, you need more permissions.
Add the following permissions to your app’s AndroidManifest.xml file.
INTERNET
Required. Used to report data to Crittercism.
ACCESS_NETWORK_STATE
Optional. Allows providing network connectivity information such as carrier and network type.
READ_LOGS
Optional. Allows collecting logcat data to be attached to crashes and handled exceptions.
GET_TASKS
Optional. Allows augmenting crash reports with information on the activity running during a crash.
Documentation
You probably need "GET_TASKS" in order to have crash reports.
I found the problem.
It seems that in the developer console, the platform was set to IOS, i changed it to Android and i can see crash reports now.
I have some applications that were transferred from another company to ours. We have had google move them to our Publisher Account. However I am trying to verify the Licensing and can only get Don't Allow with an error of 561.
I have done a lot of licensed apps and have checked permissions, PUBLIC_KEY, Test Accounts, to whole thing. I have checked versions, and tried testing the app signed and unsigned. No luck it always gives an error 561.
I cannot find anything about an error 561, does anyone know what this code means?
I assume you are referring to the Method void processServerResponse(int response, ResponseData rawData); in the interface com.google.android.vending.licensing.Policy
561 is the same as 0x231 which is definde in the interafce as NOT_LICENSED.
So there is an error with your license and you should check in the rawData to see why.
I was getting the same error, I spent a whole day to get rid of it. In my case, the problem was due to network security. I tried it with the different network (Personal hotspot network). It worked well.
This answer is maybe for anyone because it's late.
Make sure that you add the CHECK_LICENCE permission in the Manifest:
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
and make sure you upload the app to the store for testing.