Search code examples
.netibm-mobilefirstmobilefirst-adapters

How to invoke Mobile First server (adapter) from .net


I am trying to implement event based push notification using native android.

How do my .net application send notification to mobile first server/adapter saying a new task has been added.

On the documentation it says "Notifications can be either pulled from, or pushed by, the back-end system. In this example, a submitNotifications() adapter function is invoked by a back-end system as an external API to send notifications."

There is no clear explanation on how to call this ?


Solution

  • How can't teach you how to code in .net.

    In the push notifications sample application there is also a demo backend. The source code for it is provided in Java. In the source there is invocation of the push adapter.

    The end result code-wise is a line such as: HttpWorker.callAdapter(userId, notificationText, serverUrl);

    You supply to whom the push is supposed to, the text and the MFP server URL.
    The Java code opens a connect and sends the message, etc...

    The implementation depends on you - more complex, less complex. Possible MobileFirst push notification architectures