IBM / Ionic-MFP-App

This repository contains instructions to develop a secure, enterprise-grade Ionic/Cordova based hybrid mobile app that connects to CouchDB/Cloudant and ObjectStorage via IBM Mobile Foundation service.
https://developer.ibm.com/patterns/develop-hybrid-mobile-app-with-cloud-native-back-end/
Apache License 2.0
15 stars 25 forks source link

step 6.2 `mfpdev app register` fails: `Error: No platforms were detected` #3

Closed scottdangelo closed 6 years ago

scottdangelo commented 6 years ago

In step 6.2 I get a failure with mfpdev app register

Scotts-MBP:IonicMobileApp scottda$ mfpdev app register
Verifying server configuration...
Registering to server:'https://scottda-mobile-foundation-1-4-201843-server.mybluemix.net:443' runtime:'mfp'
Error: No platforms were detected.
scottdangelo commented 6 years ago

My server is the default:

Scotts-MBP:MobileFoundationAdapters scottda$ mfpdev server info

Name               URL
----------------------------------------------------------------------------------------------------
scottda-cloud-mfp  https://scottda-mobile-foundation-1-4-201843-server.mybluemix.net:443  [Default]
----------------------------------------------------------------------------------------------------
scottdangelo commented 6 years ago

I tried to add the Android platform:

Scotts-MBP:IonicMobileApp scottda$ cordova platform add android
(node:44692) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Current working directory is not a Cordova-based project.
scottdangelo commented 6 years ago

Does step 7.3 need to be performed first to add the Cordova Android platform?

scottdangelo commented 6 years ago

Yup, the issue was the Cordova Android platform. We need this step first: ionic cordova platform add android@6.3.0 Before: mfpdev app register

This needs to be fixed in the Readme.

shivahr commented 6 years ago

https://github.com/IBM/Ionic-MFP-App/pull/11 closes this.