cancel
Showing results for 
Search instead for 
Did you mean: 

Remote lock not working

jigar_salecha
Explorer
0 Kudos

Hi all,

I have successfully enrolled a android device,but I am not able to remotely lock a device through Afaria server.

On Clicking on remote lock in Afaria server,a popup appears saying "Notification sent to device".

But on device no locking is is done.

Accepted Solutions (1)

Accepted Solutions (1)

former_member105680
Active Participant
0 Kudos

Hello,

Security commands for deleting, locking and unlocking is first tried by using GCM and if it doesnt work then SMS is used.  You have to make sure you have GCM(More common) configured or SMS( not too popular lately).  Afaria supports both, and can be configured on the Afaria administrator.

jigar_salecha
Explorer
0 Kudos

Hi,

I have configured Afaria server with GCM..

Also i am able to connect to GCM address - https://android.googleapis.com/gcm/send

from both mobile device and server.

Then also locking is not happening.

Where might be the problem?

Is there any more technique to check connectivity with GCM?

former_member105680
Active Participant
0 Kudos

I think this is a configuration issue.  Please verify the following:

  1. Go to: developer.android.com/guide/google/gcm/gs.html and click on "Google APIs Console Page".
  2. Log into a valid Google G-mail
    account.
  3. From the drop down menu, select
    "Create...", to create new project:




 
 
 
 
 
 
 
 
 
1.For tinyURL Enable the
"URL Shortener API":


  1. FOR GCM Enable the "Google
    Cloud Messaging for Android":


  1. For Google Enrollment API KEY,
    you can use the browser API KEY.
  2. For GCM, you will have to
    "Create new Server key..."


  1. You will also need Project
    ID
    to use with GCM, to obtain the Project ID, you will have to
    look through the URL address for that page:


  1. For Google Enrollment: Copy the
    Browser API key and paste it into the Afaria 7 -> Server -> Configuration
    -> Server -> Enrollment Code -> Under Google API Key.
  2. For GCM: Copy the Server API
    key and Project ID into the Afaria 7 SP1 -> Server -> Configuration
    -> Component > GCM Server.
    • You will have to restart the
      Afaria server and create new enrollment code to use with GCM

I hope this helps.

jigar_salecha
Explorer
0 Kudos

Thanks Aziz

Answers (0)