0

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.

Aserre
  • 4,916
  • 5
  • 33
  • 56
gixen
  • 279
  • 4
  • 20
  • Can you share your project that recreates this problem – Srik Mar 20 '17 at 10:01
  • I now found thise line in a blog post: "Security checks are not run on the server-side and security challenges are not sent to the client that runs in the Mobile Browser Simulator" Is this still true? Looks like it. Same post says I should be able to call adapters using WLResourceRequest, so will go ahead and try that next. – gixen Mar 20 '17 at 11:14

1 Answers1

0

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/

Gaurab Kumar
  • 2,144
  • 2
  • 17
  • 29