Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobile SDK error: OPERATION_NOT_ALLOWED

I have downloaded and registered for the evaluation of the Here Premium Mobile SDK for Android. However, during initialization an error is returned: OPERATION_NOT_ALLOWED. Is there something I am doing wrong? Is there something that HERE needs to do centrally on their end to enable the evaluation?

        mapFragment = (MapFragment)getFragmentManager().findFragmentById(R.id.mapfragment);
    mapFragment.init(new OnEngineInitListener() {
        @Override
        public void onEngineInitializationCompleted(OnEngineInitListener.Error error) {

            Log.wtf("Main", "error: " + error.toString());
like image 998
Rico Avatar asked Jul 02 '26 19:07

Rico


2 Answers

When you registered the evaluation you was asked about a namespace.
That namespace is actually the applicationId of your application (the one that you put in build.gradle).

If you cannot remember the namespace that you provided during registration just register a new evaluation with the applicationId you are using. The original namespace you provided isn't available to retrieve from the dashboard.

It took me a couple of hours to find out.

like image 169
Francesco Avatar answered Jul 04 '26 09:07

Francesco


Also make sure you have updated your AndroidManifest.xml with your evaluation values:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<application android:icon="@drawable/icon" android:label="@string/app_name">

    <activity 
    ...
    </activity>

    <meta-data android:name="com.here.android.maps.appid" android:value="your evaluation value"/>
    <meta-data android:name="com.here.android.maps.apptoken" android:value="your evaluation value"/>
    <meta-data android:name="com.here.android.maps.license.key" android:value="your evaluation value"/>

    <service android:exported="true" android:label="HereMapService" android:name="com.here.android.mpa.service.MapService" android:process="global.Here.Map.Service.v2">
        <intent-filter>
            <action android:name="com.here.android.mpa.service.MapService">
            </action>
        </intent-filter>
    </service>
</application>
like image 37
map_guest Avatar answered Jul 04 '26 08:07

map_guest



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!