Info Sys
Info Sys

Reputation: 1

REST Services for push notification in MFP 7.1 - Issue

We develop hybrid mobile app using Ionic framework. We need to send push notification to the users using MFP 7.1. So using RestAPI, we are trying for that. We follow the steps given in this tutorial. http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.apiref.doc/rest_runtime/c_restapi_runtime.html

Sample code:

HttpPost httpPost = new HttpPost("https://example.com:10080/myproject/imfpush/v1/apps/com_ibm_tagpushv2/messages");
HttpClient client = new DefaultHttpClient();
HttpResponse response;
 try {
            response = client.execute(httpPost);
            System.out.println("Response-->"+response);
     } catch (ClientProtocolException e) {
           System.out.println("Exception has occurred");
     } 

My application id is com_ibm_tagpushv2.

Error:

Connection to https://example.com:10080 refused

Kindly help.

Upvotes: 0

Views: 106

Answers (1)

Related Questions