prey / prey-android-client

Android client for the Prey anti-theft software.
http://preyproject.com
GNU General Public License v3.0
428 stars 184 forks source link

"Actions" feature does not work #141

Closed newarifrh closed 5 years ago

newarifrh commented 5 years ago

I tried using the latest source code on github (ver. 1.9.9 - 1.9.10) and built it using Android Studio 3.3 with the Xiaomi Redmi Note 4 Mobile.

When doing gradle there is a Google-Services.json error message not found. I tried to make the file use my firebase account and the appropriate package name, "com.prey". Prey can be built and installed on my mobile. But the features that can be used only to get the location and even then sometimes it doesn't work. In addition, other features (Message, alarm, lock) do not work. The information on the panel is "This acton is pending".

image

Thank you

cyaconi commented 5 years ago

Hi @newarifrh,

Regarding the pending actions, this is because Prey uses push notifications to activate actions on devices, and since you're not signing your application with Prey's certificate, these notifications won't be received.

newarifrh commented 5 years ago

Hi @newarifrh,

Regarding the pending actions, this is because Prey uses push notifications to activate actions on devices, and since you're not signing your application with Prey's certificate, these notifications won't be received.

thank you for answering sir @cyaconi

So can I sign the application using the Prey certificate?

I see in the settings menu there is Prey's certificate, but for iOS. How about Prey's certificate for Android?

image

ghost commented 5 years ago

Hi there,

So can I sign the application using the Prey certificate?

You cannot. Since you're compiling your own version of Prey, you'll need to create your own push server and your own certificate, which is different than the one on the image.

You can learn more here: https://firebase.google.com/docs/cloud-messaging/

newarifrh commented 5 years ago

Hi there,

So can I sign the application using the Prey certificate?

You cannot. Since you're compiling your own version of Prey, you'll need to create your own push server and your own certificate, which is different than the one on the image.

You can learn more here: https://firebase.google.com/docs/cloud-messaging/

Thank you for your answer.