I'm having problems debugging/previewing my app in any browser with the command mfp app preview. I don't see any network related calls in the debugger in Chrome. CORS is enabled. Its an Ionic 2 app (cordova).
Running the app in the emulator or on a real device works perfectly fine with the same code.
I'm using MobileFirst Platform 8.0 hosted on BlueMix.
For app preview in MobileFirst 8.0 use command
mfpdev app preview
MobileFirst applications can access resources using the WLResourceRequest REST API.
I suggest that you will take a tour of the MobileFirst Resource request from JavaScript in MobileFirst Foundation 8.0.
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/cordova-apps/
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/resource-request/javascript/
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/bluemix/using-mobile-foundation/
Related
I created an application using IBM mobilefirst and my application is working fine, but when I look at my console in mobile first browser I find out some errors.How to resolve these errors?
We have develop a cross platform app with mobilefirst studio 7.0 and test it on production environment.
It was fine before we upgrade our project with mobilefirst studio 7.1.0.00-201510120-1525 and test it on clean staging server (7.1.0.0 20151012-1525).
It seems that the push notification functionality dedicated on mobilefirst 7.0 did not work properly on production server of mobilefirst platform version 7.1. The source code and configuration file of our mobilefirst push notifcation adapter and configuration files are here.
Inorder to fix the issue, we refer to official push notification tutorial which was documented here.
Surprisingly, although the source project in official tutorial looks fine on development server, it still not work on production server either.
We have test this project using iphone5s with ios 8.4 and HTC 816h phone with android 4.4.2, both of them fail to register push notification service after we login to the HybridEventSource sample application and tap the “Subscribe Notification” button.
The Mobilefirst server logs down internal server error message during the registration process of client devices.
I am wondering how to let the push notification mechanism work again on mobilefirst 7.1?
Either a valid push notification sample code of mobilefirst 7.1 or any fix pack which we do not know is welcomed.
Since we did not authenticate users via mobilefirst server, and devices were connected through vpn to server,
we prefer to have a solution which does not depends on particular mobilefirst server side authentication mechanism.
The server log message generated during this test is in this file.
The log file generated while we run EventSourceNotification app as xcode project is in this file.
For detail system log from ios device, please refer to device log file
And the Log message generated by HTC 816h android 4.4.2 phone is here
Information about our server environment:
Operating system : centos 5.8 linux
Java development kit : Oracle jdk 1.8 update 65 x86-64
Application server : Apache tomcat server 7.0.63
Worklight environment database : oracle database 11g.
Apple push notification service certificate : sandbox version
Well that's kinda suspicious, isn't it?
Since we did not authenticate users via mobilefirst server, and devices were connected through vpn to server, we prefer to have a solution which does not depends on particular mobilefirst server side authentication mechanism.
You are using the push mechanism provided by MFPF but you do not want to go through MFPF? You are required to go through MFPF if you want to use the push mechanism provided by MFPF... What did you mean by the above?
That said, did your DBA examine mf7-1-EventSourceNotifications-catalina.out.log? There are quite a few Oracle-related exceptions there that you should look at.
If you are still unable to resolve it I suggest to open a PMR instead so that the development team will be able to further investigate.
I am working on MobileFirst platform for hybrid app development. I am following this tutorial as I want to use my existing java classes for web service call. And It is working fine on Android.
https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/server-side-development/using-java-adapters/
Does this works across all platforms. I want to run the same in Windows Phone also.Will this adapter be called on Windows Phone. What is the scope of using Java in JavaScript adapters.
Adapters are sever-side entities. The Java code is executed on the Server and so it does not matter from which client-side application you are calling the adapter from, be it Android or Windows Phone or anything else.
I am developed sample worklight http adapter. it working fine then i am going to tested for worklight simulator and android simulator it's both are working fine. while i move to install the in that app on android device i am getting error for url connection is failure and connection refuse problem . then i am going customized change the ipaddress and port number on android project for wlclient.properties then generate APK file it's working fine. this is right way to develop the application or otherwise any configuration level shall i do this? please any think let me shared information
by default WL studio will inject one of the IPs available on your machine. If you're using WL 5.x you can change worklightServerRootUrl property in application-descriptor.xml
If your on WL 6.x right-click your app and select run->build for remote server
I still no able to successfully download/install an app thru IBM app center to see what a new app looks like on a mobile device.
2 simple questions :
1) If an app, let's call it myapp, was download/install successfully thru IBM app center, then would myapp simply an independent new app on the device or myapp some how "embedded" in the worklight app center app?
2) If I deployed myapp to a Samsung tablet thru other means, that is not thru IBM app center, then would worklight serve has the knowledge of myadd install in this particular Samsung device?
The application would be independent. You could, for example, uninstall it either through the Application Center mobile client, or via the usual procedure the device OS allows you to.
Assuming the applications has connectOnStartup=true, and you deployed the app to the Worklight Server, the answer would be Yes. (the Application Center is not a substitute to the Worklight Server, you must still deploy it there if you intent for your application to use features such as Worklight Adapters).