locked
web api in application mobile RRS feed

  • Question

  • User-1548796982 posted

    hi

    Can the Web api used to communicate with other sites be used to communicate with the mobile app?

    Sunday, February 3, 2019 3:12 PM

All replies

  • User475983607 posted

    Of course. Can you explain the problem you trying to solve and post your source code?
    Sunday, February 3, 2019 3:15 PM
  • User-474980206 posted

    the mobile app can call a webapi, but the server can not call a mobile device via webapi. there are other frameworks that allow this.

    Monday, February 4, 2019 12:41 AM
  • User283571144 posted

    Hi tadbirgaran,

    Can the Web api used to communicate with other sites be used to communicate with the mobile app?

    Do you mean you want to communicate the web api which inside a mobile app?

    If this is your requirement, the short answer is yes.

    We could communicate the web api by sending the request to the api application.

    But we couldn't use the web api to call mobile app's function. 

    We should use other technology like SignalRto achieve this requirement. You could use web api's controller method to call SignalR  mobile side client method.

    More details, you could refer to below article:

    https://montemagno.com/real-time-communication-for-mobile-with-signalr/ 

    Best Regards,

    Brando

    Monday, February 4, 2019 9:42 AM
  • User753101303 posted

    Hi,

    Yes, it uses http and so you can access to that from any client platform that can send http requests to your web api server (which includes all mobile side development platforms).

    If you need further help, a forum for the mobile development technology you are using could be better.

    Monday, February 4, 2019 3:39 PM