Back

[SOLVED] latitude, longitude and current city

  • 1
  • Flutter
  • Locale
  • Cloud
Nuaiman
23 Jun, 2023, 18:31

Hello, I wanted to know is it possible to get user's latitude and longitude through appwrite SDK?

TL;DR
The user wanted to know if it's possible to get a user's latitude and longitude through the Appwrite SDK. The response was that Appwrite can only determine the user's country based on their IP address, but it cannot provide latitude and longitude information. There was also discussion about using Firebase Cloud Functions and FCM, with some confusion about whether an upgrade to a paid plan was necessary. The solution provided was to use Appwrite Functions with FCM for push notifications, but there was no specific information about when push notifications for both iOS and Android would be available with Appwrite.
Nuaiman
23 Jun, 2023, 18:31

latitude, longitude and current city

Drake
23 Jun, 2023, 18:34

no. to do that, you need the device to share it's GPS location and you typically need to ask for permission for that. That's something done client-side outside the scope of Appwrite.

The only thing Appwrite can determine is from their IP which can provide the users country. take a look at the sesison object: https://appwrite.io/docs/models/session

Nuaiman
23 Jun, 2023, 18:35

@Steven thankyou.

I have another question, when can we expect pushNotification for both iOS and Android with appwrite?

Drake
23 Jun, 2023, 18:36

we're working on it and i don't have any estimates, but you can already do it with Appwrite Function and FCM

Nuaiman
23 Jun, 2023, 18:38

Thankyou. But I think using FCM with appwrite functions requires the upgraded plan. Please correct me if I am wrong.

Drake
23 Jun, 2023, 18:39

what do you mean? why?

Nuaiman
23 Jun, 2023, 18:40

I mean to use appwrite functions to send FCM, I need to upgrade to the paid plans of Firebase right?

Drake
23 Jun, 2023, 18:40

FCM is free

Nuaiman
23 Jun, 2023, 18:40

Yes it is, but I am asking that I need to upgrade from the free plan right?

Drake
23 Jun, 2023, 18:41

not that im aware. i've never used it though

Nuaiman
23 Jun, 2023, 18:41

I think using cloud functions requires me to upgrade from free plan to a paid plan, although functions and FCM is free.

Drake
23 Jun, 2023, 18:42

Firebase Cloud Functions requires an upgrade, yes. Appwrite Functions do not

Nuaiman
23 Jun, 2023, 18:43

But, when I trigger an appwrite function, a function in firebase will also trigger right?

Drake
23 Jun, 2023, 18:44

no

Nuaiman
23 Jun, 2023, 18:45

Oh wow!!! So please let me summarize everything.

What you suggest is, I could use FCM with Appwrite functions even in Firebase's free plan?

Drake
23 Jun, 2023, 18:46
Nuaiman
23 Jun, 2023, 18:47

Thank you for the clarification and the example 😁😁

Drake
23 Jun, 2023, 19:43

[SOLVED] latitude, longitude and current city

D5
23 Jun, 2023, 20:07

Nope, 100% free. Probably you have heard that Flutterflow requires having the paid plan to send them. It's because it uses firebase functions (which require the paid plan)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more