On the iPad I have logged into Ionic view but there are no apps there. I have also added a developer cert and provisioning cert for iOS in the app settings and have added a security profile.
Are there any docs for ionic3 available?
Has anyone managed to get an ionic 3 app in Ionic view.
Is your app visible on apps.ionic.io?
Are you logged into the same account in Ionic View as on apps.ionic.io?
Is the upload visible for your app on apps.ionic.io in the “Deploy” tab with “No Note: upload”?
Can you test with Ionic View other devices?
I have compiled this and got it to run in xcode. This is the upload and info output from the my mac. Its a test application from a Ionic2/3 course . Thanks for your help
[20:22:34] build dev started …
[20:22:34] clean started …
[20:22:34] clean finished in 30 ms
[20:22:34] copy started …
[20:22:34] transpile started …
[20:22:41] transpile finished in 6.91 s
[20:22:41] webpack started …
[20:22:42] copy finished in 7.59 s
[20:22:50] webpack finished in 8.31 s
[20:22:50] sass started …
[20:22:53] sass finished in 3.42 s
[20:22:53] build dev finished in 18.75 s
⠙ Requesting snapshot upload
_stream_readable.js:545
switch (state.pipesCount) {
^
TypeError: Cannot read property ‘pipesCount’ of undefined
at module.exports.Readable.pipe (_stream_readable.js:545:16)
at module.exports.ZipArchiveOutputStream._smartStream (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:184:11)
at module.exports.ZipArchiveOutputStream._appendStream (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/zip/zip-archive-output-stream.js:96:20)
at module.exports.ArchiveOutputStream.entry (/usr/local/lib/node_modules/ionic/node_modules/compress-commons/lib/archivers/archive-output-stream.js:88:10)
at module.exports.ZipStream.entry (/usr/local/lib/node_modules/ionic/node_modules/zip-stream/index.js:157:49)
at Zip.append (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/plugins/zip.js:53:15)
at Archiver._moduleAppend (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:172:16)
at Archiver._onQueueTask (/usr/local/lib/node_modules/ionic/node_modules/archiver/lib/core.js:370:8)
at /usr/local/lib/node_modules/ionic/node_modules/async/dist/async.js:4069:9
at Object.process (/usr/local/lib/node_modules/ionic/node_modules/async/dist/async.js:2317:17)
Tue Jul 25 20:22: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >>
Tue Jul 25 20:23: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >> ionic info
[22:07:30] build dev started …
[22:07:30] clean started …
[22:07:30] clean finished in 25 ms
[22:07:30] copy started …
[22:07:30] transpile started …
[22:07:33] transpile finished in 2.95 s
[22:07:33] webpack started …
[22:07:34] copy finished in 3.86 s
[22:07:42] webpack finished in 9.14 s
[22:07:42] sass started …
[22:07:45] sass finished in 2.09 s
[22:07:45] build dev finished in 14.27 s Requesting snapshot upload - done! Uploading snapshot - done!
[OK] Uploaded snapshot 0f703f0a-eedc-4cfd-8f12-064d0ce9f50f!
Tue Jul 25 22:08: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >>
I have got the app to work on my apple iphone/ipad. The android package seems to have failed.
BUILD STATUS PLATFORM STARTED BUILD TIME #2 Failed Android 2017-07-26 6:36 AM
OUTPUT #1 Failed Android 2017-07-25 10:19 PM
OUTPUT
the output message is
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /opt/android-sdk/tools/templates/gradle/wrapper
I download Android studio yesterday afternoon so hope its the latest version.
The output from the command line looks ok.
Wed Jul 26 06:35: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >> ionic package build
? What platform would you like to target: android
Running app-scripts build:
[06:35:52] build dev started …
[06:35:52] clean started …
[06:35:52] clean finished in 46 ms
[06:35:52] copy started …
[06:35:52] transpile started …
[06:36:00] transpile finished in 7.84 s
[06:36:00] webpack started …
[06:36:01] copy finished in 9.40 s
[06:36:09] webpack finished in 9.39 s
[06:36:09] sass started …
[06:36:12] sass finished in 2.81 s
[06:36:12] build dev finished in 20.16 s Requesting snapshot upload - done! Uploading snapshot - done!
[OK] Uploaded snapshot 7de64d90-4019-428c-abee-513066509c36! Requesting project upload - done! Uploading project - done! Queuing build - done!
[OK] Build 2 has been submitted!
Wed Jul 26 06:36: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished)
I have a successful android build. I ran the following command to add the platform for android.
ionic cordova platform add android
I wrongly assumed when running the ionic package build command with the android option a sub folder under platforms would be created.
My understanding is a limited. If I run the command > ionic package build
-IOS
and
-Android
and then run > ionic upload. Will both versions be able in Ionic View?
Thanks in advance for your help
Ben
Wed Jul 26 10:40: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >> ionic cordova platform add android
? The plugin @ionic/cli-plugin-cordova is not installed. Would you lik
e to install it and continue? Yes
npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest Running command - done!
cordova platform add android --save Running command - done!
Using cordova-fetch for cordova-android@~6.2.2
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.ionicframework.favoritequotes
Name: Favorite_Quotes
Activity: MainActivity
Android target: android-25
Subproject Path: CordovaLib
Android project created with cordova-android@6.2.3
Installing “cordova-plugin-console” for android
Installing “cordova-plugin-device” for android
Installing “cordova-plugin-splashscreen” for android
Installing “cordova-plugin-statusbar” for android
Installing “cordova-plugin-whitelist” for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing “ionic-plugin-deploy” for android
Installing “ionic-plugin-keyboard” for android
–save flag or autosave detected
Saving android@~6.2.3 into config.xml file … Copying default image resources into ./resources/android - done!
Wed Jul 26 10:59: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >> ionic package build
? What platform would you like to target: android
Running app-scripts build:
[11:06:11] build dev started …
[11:06:12] clean started …
[11:06:12] clean finished in 10 ms
[11:06:12] copy started …
[11:06:12] transpile started …
[11:06:31] transpile finished in 19.34 s
[11:06:31] webpack started …
[11:06:36] copy finished in 23.96 s
[11:06:46] webpack finished in 14.91 s
[11:06:46] sass started …
[11:06:54] sass finished in 7.68 s
[11:06:54] build dev finished in 42.75 s Requesting snapshot upload - done! Uploading snapshot - done!
[OK] Uploaded snapshot 97dbc20e-323f-45f4-bebd-cebe41d0036f! Requesting project upload - done! Uploading project - done! Queuing build - done!
[OK] Build 3 has been submitted!
Wed Jul 26 11:07: $|-bash|~/Documents/Udemy/IonicAngular/Section Code (Finished) >> ionic package list Retrieving package builds - done!
id | status | platform | profile | mode | started | finished
Ionic View has nothing to do with ionic package:
Ionic View basically just shows /www in an app on your phone. Running ionic upload once makes your app available on all devices that can run an Ionic View app. ionic package takes /www and builds it into its own app that you can install on phones.
You Android build was failing on ionic package because it needs some input for which cordova-android version to use. As oyu hadn’t added the Android platform locally, it didn’t have that information. When you run ionic info now again, you will see that there is additional information available.
I have this app working on the xcode and android studio emulators and within Ionic View on my physical devices. Thanks for your help over the last couple of days.