调用来自服务器端Java代码的方法,以及接收其同步响应。

huangapple go评论72阅读模式
英文:

invoking a method from Server-side Java code to an IOS APP and receiving its synchronous response

问题

我有一个使用情况,需要从托管在云中的服务器端 Java 代码中调用我的 iOS 移动应用中的方法,然后从应用中获取一个响应。这个使用情况是对移动设备进行 ping,并获取其当前位置值(纬度和经度)。我需要从服务器端的 Java 代码同步调用 iOS 移动应用。(我假设用户已经通过我的应用程序同意始终共享位置。)
您能否指导一种方法,或者提供任何链接,供我参考以完成这个使用情况?

英文:

I have a use case to invoke a method in my IOS mobile-app from my Server-side Java code hosted in Cloud, and then get a response from app. This use case is to ping the mobile and get its current location value(latitude & longitude). I need to make a synchronous call from server-side Java to IOS mobile APP. (I assume user has already accepted to share location 'Always' through my app).
Can you please advise an approach, or any link, I could refer to accomplish this use case ?

答案1

得分: 0

我猜我可以在我的Java代码中使用Google Firebase来触发推送通知到移动应用,并在不让用户知道应用内发生任何事情的情况下,静默获取该用户的当前位置;尽管应用保持关闭状态。

英文:

I guess I could use google-firebase from my Java code to invoke Push notification onto Mobile-APP and silently, without letting user know something happening inside APP, fetch that user's current location; though the App would remain closed.

huangapple
  • 本文由 发表于 2020年9月1日 05:21:35
  • 转载请务必保留本文链接:https://go.coder-hub.com/63678347.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定