英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论