233 comments found.
plz help see screenshot http://prntscr.com/9k8kzj whay i am getting this error while running install.bat command i have installed git
It looks like the path "c:\Users\info\"/.config/git/config` is not correct. “ character should not be part of the path. The path should be similar to the following: c:\Users\info\.config\git\config. Please, make sure you set the path properly and let us know if that resolves your issue.
can we add web view and search function in this app
I am afraid your question is very general. But supposing this is a Cordova/Ionic app, everything could be possible to be implemented. Though, the difficulty of developing such functionalities is very correlated with the complexity of those functionalities and the experience that you have. I hope I answered your question.
install successfull but back button dint work my android version is 4.2.2
thanks and good job, but i found some error No ‘Access-Control-Allow-Origin’ when accessed news,rss feed,drupal, wordpress and image on homepage.
little make me pain when i try to ionic run in my phone installed successfull but the content show white blank then back menu didnt work like i said before.
Hi, No ‘Access-Control-Allow-Origin’ message is not an error. For security reasons, browsers restrict cross-origin requests initiated from within scripts. As a result, in order to run the app on your browser, you should install an extension such as “CORS” (for chrome) to enable those requests. Please, let us know if this helps.
how about back button didnt working ? is should i configuration first like chang eurl of json api, key ?did u test on 4.2.2 android ?
The problem you encounter may be caused because of the rendering engine (in this case chromium) used for the older versions of Android. A possible way to support older Android versions is by changing the rendering engine.
For this reason, the Crosswalk plugin can be used which, on top of the rendering engine compatibility, offers better performance.
Choosing Crosswalk as the rendering engine of your app does not require any coding. You just need to add/install the related plugin before you build your Android project.
Once you finish with any development task and your are ready to build your .apk file you should do the following steps:- cordova plugin add cordova-plugin-crosswalk-webview
- cordova build android
- npm install
- cordova platform add android
hi thanks for you suggestion i have way for solve my problem. the main problem is my npm is outof date, i dont know why still out of date after npm install -g npm@lastest , then i found because my npm is one package with my nodejs , so after reinstal using new nodejs all is well.
We are glad you finally managed to get everything working well!
Could you please mention the android version of the device you are testing the app and getting these reluts?
Testing on Galaxy Note 2 and galaxy S3 devices. And with Genymotion Galaxy Note 4 & Google Nexus 4 emulators give the same issue.
The problem you encounter may be caused because of the rendering engine (in this case chromium) used for the older versions of Android. A possible way to support older Android versions is by changing the rendering engine.
For this reason, the Crosswalk plugin can be used which, on top of the rendering engine compatibility, offers better performance.
Choosing Crosswalk as the rendering engine of your app does not require any coding. You just need to add/install the related plugin before you build your Android project.
Once you finish with any development task and your are ready to build your .apk file you should do the following steps:- cordova plugin add cordova-plugin-crosswalk-webview
- cordova build android
- npm install
- cordova platform add android
Please, do not hesitate to come back to us if you need to.
Events button works but Send Email button still not responding on crosswalk-webview
Please, make sure all plugins are successfully installed. There is a chance email composer plugin is not installed properly.
I have tried all I could on the Send Email (Cordova email composer) even rebuild the app this is the debug error I’m getting: ReferenceError: cordova is not defined at Object.isAvailable (ng-cordova.js:2030) at HomeController.sendEmail (home.controller.js:29) at $parseFunctionCall (angular.js:12474) at ionic-angular.js:11657 at Scope.$eval (angular.js:14570) at Scope.$apply (angular.js:14669) at HTMLAnchorElement.<anonymous> (ionic-angular.js:11656) at HTMLAnchorElement.eventHandler (angular.js:3047) at triggerMouseEvent (ionic.js:2858) at tapClick (ionic.js:2847)
Error :ReferenceError: cordova is not defined at Object.isAvailable (ng-cordova.js:2030) at HomeController.sendEmail (home.controller.js:29) at $parseFunctionCall (angular.js:12474) at ionic-angular.js:11657 at Scope.$eval (angular.js:14570) at Scope.$apply (angular.js:14669) at HTMLAnchorElement.<anonymous> (ionic-angular.js:11656) at HTMLAnchorElement.eventHandler (angular.js:3047) at triggerMouseEvent (ionic.js:2858) at tapClick (ionic.js:2847)
Hi babaenv, we recently figured out that the Cordova Email Composer plugin [1] is not working on Android 6.x. What is the version of the Android device you are testing the code?
We are waiting for the plugin to be updated. In the meanwhile we are evaluating all the alternative options which are available.
Android 4.3. Also for some reason I cant figure out yet, on the device I cant display data from youtube or wordpress or aws. It gives Alert error: There is no internet connection.
Please can someone respond to the above issue. The apk on device working only with wifi to connect to internet. When the mobile data connection is turned on it gives “No internet connection” Alert. But other apps on the device works fine which mean the error is from your code or something.
Hi, what is the version of Barebone Ionic you run (e.g. 2.14)? Also, there is a chance that the problem occurs due to your Android version which is an older one. Please, let us conduct some additional testing on that older Android version and we will come back with some feedback.
You guys better do some better product support than pushing the fault to the other guy! if it’s not cordova, it’s android or something else other than your app. Please evolve this damn product and make it work as you claim on the product page. If I have read this much error comment I wouldn’t have purchase this in the first place. I run other ionic app on the same device and they run effortlessly. this is so frustrating!
Hi babaenv,
This is a known issue of Cordova we are closely monitoring and working with the community to sort out.
https://issues.apache.org/jira/browse/CB-10160It has been reported by us and some more community members and affects particularly only Android versions. Recently this issue has been marked as resolved and we are waiting for the next version of the code base to be released.
Bear in mind that Cordova, a platform our product is based on is an Open Source project driven by volunteers. The effort all these people is what makes Cordova free for the rest of us. The less we could contribute back is the report of issues we are becoming aware of.
Barebone Ionic and Ionic in general, is explicitly based on Cordova for any communication with the device. That’s why issues like that are having their source in the codebase of Cordova.
Was all these reasons why Sofia asked you to provide us back information about your environment. This will help us to firuge out the situation in your end and help you and the community as well.
I have to admit that you are using a kind of older version of Android we are not having any more available for testing.
Finally please let me mention that the last thing we would like to have are people frustrated because of our products. If this piece of software is not fitting in your needs or for any other reason, which you are having the right not to share it with us, your are not willing to use it, please contact us privately and we will arrange a full refund.
Hi skounis, I understand how open source works and I’am a member of cordova community. I have followed every thread carefully on this issue but it’s not from cordova or android, it’s your coding. This are my reasons:
1. Your app apk only fails to pull ajax call (http-get) on mobile (3G/4G) network but it does on wifi.
2. Other ionic app tested on the same device work pulling data successfully, including your other app (barebone-Material).
3. I’m not testing only on Galaxy note 2, it fails even on galaxy s5. I only use the old phone to ensure backward compatibility.
Finally, my point is you need to look deeply into your coding, if Barebone-Material is working fine and this is not. Then I don’t think it make sense to be looking elsewhere for the problem. They are both ionic, cordova based practically same app with different features here and there. Get my point ?
Hi babaenv,
in this application there is a network check made in the /config/internet-connectivity.js file.
If you check the getNetworkStatus there, you will see the workaround that is made and a comment about the issue CB-10160.
In your case you may need to handle the return of the cordova plugin in a slightly different way.
Change the following line of code, from:
var networkState = JSON.stringify(navigator.connection); //.type
console.log('Internet connectivity check. NetworkState: ' + networkState);
to
var networkState = JSON.stringify(navigator.connection); //.type
alert('Internet connectivity check. NetworkState: ' + networkState);
And share with us what you are getting back in your device. A dialog with all the values the network plugin returns in your device will be pop-up.
Then we will guide how to fix this issue for your device and Android version.
Any headway yet?
Hi, it seems that you are using an older version of the code. Could you please download the latest release from you codecanyon account. You could find this file adjusted.
I your case the Cordova plugin that checks the existence of a network fails.
Another temporary solution is to short-circuit the check and make the check function to return always true.
Thanks, works on new version. But on this new version the firebase chat is not working. If I log-in nothing happens, the login page just sit there but when I check debug console it reads: Logged in as:a4c10632-56c9-47d0-8161-69d07cff1235 . This means the login script works but it’s not opening the chats page as set in my grunt file. Please help on this ASAP.
Hi don’t bother about it. I resolve it already. The problem was with the new security rules I effected on the firebaseio. It’s working fine now.
Hi, we are happy you came to a solution on that!
Hi skounis, i managed to get everything working, but whenever i make any change in the scss or any file in the app directory. It takes around 10-20 seconds to changes to reflect on my machine (Windows). Is it supposed to be that slow. Thanks.
I believe that this is related to the file system and the operating system.
So, haven’t you optimized barebone for windows platform.?
I’m afraid that It is not a matter of optimization. The tools used for the development, are not performing well in this platform.
Grunt is monitoring the file system for changes, builds the code and run the server again. This is the process that takes longer in your box.
Actually i bought your other app too (i18n), but i am afraid it will work the same way as this one did. If these apps work that slow on windows, i am afraid i can’t use them on any of my development projects as i work only on windows machine. (Also did worked with meanjs, it also uses grunt and it builds really fast on my machine)
The one solution i thought was to use ionic serve and setup sass with it. But it will defeat the purpose of this project i suppose. So can you give me a refund or try to give me another solution.
Thanks.
Hi, in the pack you have downloaded you will find a folder named “release” [1]. This folder contains a plain ionic version of the workspace without any dependency to Grunt and the sophisticated build system around it.
Please let me know if this improves the performance you are experiencing.
Yes it does work and it refresh faster than the grunt one, but still not that fast (but i can live with it). The issue now is, when i run ionic setup sass, i got an error gulp not found, i installed gulp, but the sass folder is not created. Also when i run ionic serve, i am getting gulpfile not found. So can you please setup it up on your machine with gulpfile and sass, and then send me the code. Thanks.
Sass need further configuration in order to work with an Ionic project. It is not just the “ionic setup sass” command that is needed.
SASS is enabled in the Grunt based projects. There is a preprocessor needed for the sass files to be compiled and injected into the .html files as derived .css.
Please check the Grunt based project. If your machine can not afford the file system monitoring process of grunt you could:
1. Make your changes in the [app] folder 2. Run grunt build to run the pre-processing step once 3. Start the app by using “ionic serve”
In this case you should work within the [project] folder and not the [release]
I am working on latest download My system info
Cordova CLI: 5.4.1 Gulp version: CLI version 3.9.0 Gulp local: Ionic CLI Version: 1.7.12 Ionic App Lib Version: 0.6.5 ios-deploy version: 1.8.3 ios-sim version: 5.0.3 OS: Mac OS X Yosemite Node Version: v0.12.2 Xcode version: Xcode 6.4 Build version 6E35b
I am getting error while npm install Cannot find module ‘jsonfile’
this module is already installed globally with multiple versions even then I am getting this error. To resolve thisI need to install all dependency locally. I have to do this process for lots of packages. Is there any configuration or any solution to short this out?
after fixing all this error in npm install command when I use grunt platform:add:android
I am getting same type of errors Cannot find module ‘findup-sync’ . . . Cannot find module ‘npm’
and I am stuck.
could you please share with us all the messages you are getting when you are running
npm install
do not paste the output here, please use https://gist.github.com/, create a snippet there an paste the link here
npm install
https://gist.github.com/kashyapgajiwala/55f6a953e3dc5f68fba3 ./install.sh https://gist.github.com/kashyapgajiwala/b62f9c236bbe05759b41 ionic emulate ios I am getting blank screen in emulator https://gist.github.com/kashyapgajiwala/fa0a6ffba5135af8c2de& when I run apk on amdroid it also shows blank screen, I have used BareboneIonic-2.13
Hi, the most common issue related to blank screens is the inability if the client libraries to be properly installed.
Could you please try to run “bower install” and then “grunt serve”?
Keep in mind that when you are working within “project” directory grunt tool is preferred for executing Ionic an Cordova commands
Since you are having version 2.13, you will also try the code within the “release” directory. What can be found there is a derived code base with no dev dependences to Grunt. There you could treat it as a plain Ionic project and start it by using “ionic serve”
Do not come back.with feedback.
Correction: Do not hesitate to come back with feedback.
Hello, is there any project to integrate Joomla as wordpress and drupal ? thanks
Currently there is not any Joomla integration part of Barebone. If you provide us however information about Joomla and how it can expose its content in JSON format we may add it.
too many pain when i was try to build in android some repository depredated, and old, please update thanks
Hi a new release is prepared and will go public the forthcoming days.
can i show all categories of my wordpress site in IOS apps. also does ur apps send push notification for IOS and Android
The app uses the JSON API (https://wordpress.org/plugins/json-api/) and shows the posts of a demo wordpress site (http://demo.titaniumtemplates.com/wordpress/). Following the documentation of the JSON API, you could adapt the code to your needs. Also, the app includes a full-working example of push notifications for iOS and Android.
Are you aware that the Google Feed Api has been shutdown?https://www.reddit.com/r/jailbreak/comments/3v6ila/discussion_ive_been_using_the_google_feed_api_to/ any alternatives?
We are planing to check the following two alternatives. I’m pretty sure though that there be a plenty of them very soon
https://superfeedr.com http://rss2json.comHello, I got this message error when I launch grunt serve
ncaught Error: [$injector:modulerr] Failed to instantiate module starter due to: Error: [$injector:modulerr] Failed to instantiate module barebone.ad due to: Error: [$injector:nomod] Module ‘barebone.ad’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. http://errors.angularjs.org/1.3.20/$injector/nomod?p0=barebone.ad at http://localhost:8100/bower_components/angular/angular.js:63:12Can you help me? Thanks
Hi, the issue is related to the Ad module. The AdMob cordova plugin1 that is used is discontinued in favor of its Pro version.
We are working an a new release of the app where the new plugin will be used. Until then and in order to have the current code base working you should remove the Ad module and any reference to it and the mentioned plugin.
Hi I have checked your app, I find it bit slow Will it be improved if we remove some unwanted functionality?
Is it easy to add multi-language support?
That would not improve app’s performance dramatically. Though, we are interested in knowing what exactly you consider as slow. Also, what device you tested the app on? For example, if you tested it on an Android emulator that would explain the bad performance. As for the multi-language support, it should not be difficult. The following article can guide you through what is needed in order to do that: https://medium.com/@skounis/internationalize-and-localize-your-ionic-application-e16b4db1907b
I am using s3 android 4.3
Issue is with popover, it work fine first time but if I try again I can’t able to see drop down & not able to open side menu.
same issue with local storage, when I add first note it will work ,but not able to open through + sign second time & not able to open side menu.
Most of the time apps back button is not working ,I need to use phone back button in word press when I open single post, after that back button is not working & I can’t scroll down into artical as there is no scroll but artical is longer then screen. same issue with element and can’t fill form.
Add to cart button is not working.
Please, try the following apk which is built to support the android version you use: https://drive.google.com/file/d/0B5d8Lqm1ViE1MGM5XzJmS2JOTm8/view?usp=sharing
Hi kashyap01,
did you had the chance to check the provided .apk satsalou has prepared for you? Is there any feedback about that?
Thank you /s
I am getting few errors in building app for android, Its working for ios
for below command missing all splash image grunt platform:add:android
cp: no such file or directory: /users/techpukka/Sites/project/mobApps/prodoggy/resources/android/splash/drawable-port-xxhdpi-screen.png
Running command:
Installing “com.google.admobsdk” for android
Notice: com.google.playservices@19.0.0 has been automatically converted to cordova-plugin-googleplayservices and fetched from npm. This is due to our old plugins registry shutting down.
Fetching plugin “cordova-plugin-googleplayservices@19.0.0” via npm
Failed to install ‘com.google.admobsdk’:CordovaError: Failed to fetch plugin cordova-plugin-googleplayservices@19.0.0 via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL.
other info node -v v0.12.2 ionic -v 1.7.11
grunt platform:remove:android grunt platform:add:android grunt build:android
Hello Is there anyone can open this project on VB 2015 ? or any help ?? the folder i download it doesn’t have www folder . So please if there r any help will be appropriated. Regards
Hello, www folder will be created once you build the project. There is a section in the documentation referring to how to build your project. Please, follow the steps described in order to install and build your project successfully. Feel free to contact us if any further help is needed.
io got this C:\Users\ziada\Desktop\school>npm install npm WARN engine karma@0.12.37: wanted: {node <=0.12 || >=1 <=2”} (current: {node“}) npm ERR! Windows_NT 10.0.10240 npm ERR! argv “C:\\Program Files\\nodejs\\node.exe” “C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js” “install” npm ERR! node v5.1.0 npm ERR! npm v3.3.12 npm ERR! file C:\Users\ziada\AppData\Roaming\npm-cache\grunt-contrib-copy\0.7.0\package\package.json npm ERR! code EJSONPARSE
npm ERR! Failed to parse json npm ERR! Unexpected token ’\u0000’ at 1:1 npm ERR! npm ERR! ^ npm ERR! File: C:\Users\ziada\AppData\Roaming\npm-cache\grunt-contrib-copy\0.7.0\package\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! Please include the following file with any support request: npm ERR! C:\Users\ziada\Desktop\school\npm-debug.log
Please, make sure you delete the comma character before the "postinstall": "./install.sh" line you deleted in package.json file and run npm install again.
Ok, I installed PhoneGap and Ionic now, which one do I open this up in?
You should prepare your environment for nodejs based development. The two articles that follow are describing that
MacOS/Linux http://www.titaniumtemplates.com/node/49 Windows http://www.titaniumtemplates.com/node/48The please check the Quick Start Guide document that comes with the packages. There is an installation/initialisation process you should follow.
Do not hesitate to drop us a line for any further assistance.
Hi, could you please tell me what service is used for push notifications? Is it possible to add notification when new Wordpress/Drupal post is published? Thank you!
The push notification service provided by ionic is what is integrated and demonstrated.
In order to have a push notification be sent your Wordpress/Drupal site should raise that event when the action is happening. This event could be an HTTP call to the web service which will trigger the related action and sends the message.
You could definitely list the events like news as their structure is a simple table. Though, in order to do that, you should modify the related html file. Also, you can remove as many components as you want. In fact, this could be an easy process as the app’s architecture is extremely modular. As for the glitches you noticed on Ionic View, it is very possible this happens due to Ionic Viewer. Actually, some functionalities are not available to view at all on Ionic View. Though, If you describe in more detail the exact problem you encountered, I will be able to inform you more precisely.
Heyy., I Follow your instruction as you said, for windows I getting error can’t even Run For first time.. Help me ASAP
Could you share any log messages about the errors you are getting, please?
and before npm install $ npm install npm WARN EJSONPARSE Failed to parse json npm WARN EJSONPARSE Trailing comma in object at 54:3 npm WARN EJSONPARSE }, npm WARN EJSONPARSE ^ npm WARN EPACKAGEJSON barebone-ionic No description npm WARN EPACKAGEJSON barebone-ionic No repository field. npm WARN EPACKAGEJSON barebone-ionic No README data npm WARN EPACKAGEJSON barebone-ionic No license field.
reply me asap
Please, use https://gist.github.com/ to send us your package.json file as it may be corrupted so we can fix it.
Please, make sure you delete the highlighted comma character (https://drive.google.com/file/d/0B5d8Lqm1ViE1SG0wN1BEOHlNTTA/view?usp=sharing) and run npm install again.
now it comes this
$ npm install npm WARN install Couldn’t install optional dependency: Unsupported npm WARN EPEERINVALID karma-chai@0.1.0 requires a peer of chai@* but none was installed. npm WARN EPEERINVALID karma-mocha@0.1.10 requires a peer of mocha@* but none was installed.
You could ignore these two packages.
I’m trying to build for Android and I’m getting a Build failed:
BUILD FAILED
Total time: 5.272 secs
/PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/gradlew with args: cdvBuildDebug,-b,/PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/build: Command failed with exit code 1
I tried updating the Android SDK, the Cordova CLI. I even tried creating a new project from scratch again, but the iOS version builds and the Android fails.
I don’t have any issues building for Android for a straight Cordova project, so I’m assuming this is Ionic related.
What command did you run in order to build for Android?
Ionic platform add android
Grunt platform:remove:android Grunt platform:add:android Grunt build:androidDoes the problem persist?
The error actually comes when I do a: ionic build android or ionic emulate android
Yes, it still fails. Here’s the errors. There are more than one error:
:processDebugResources/PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:28: error: Error: No resource found that matches the given name (at ‘icon’ with value ’@drawable/icon’).
FAILED
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ’:processDebugResources’. > com.android.ide.common.internal.LoggedErrorException: Failed to run command: /android-sdk/build-tools/23.0.1/aapt package -f—no-crunch -I /android-sdk/platforms/android-22/android.jar -M /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/res/debug -A /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/assets/debug -m -J /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/generated/source/r/debug -F /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/res/resources-debug.ap_—debug-mode—custom-package com.prismstudios.ctg -0 apk—output-text-symbols /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/symbols/debug Error Code: 1 Output: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:28: error: Error: No resource found that matches the given name (at ‘icon’ with value ’@drawable/icon’).
- Try: Run with—stacktrace option to get the stack trace. Run with—info or—debug option to get more log output.
BUILD FAILED
Total time: 8.472 secs
/PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/gradlew with args: cdvBuildDebug,-b,/PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/build.gradle,-Dorg.gradle.daemon=true ERROR building one of the platforms: Error: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/build: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: /PhoneGap/iOS/CisnerosTrainingGroup/project/barebone-ionic/platforms/android/cordova/build: Command failed with exit code 1
I get these errors when I do a: grunt build:android
These are the same errors when I do a: ionic build android
Either way I get these errors.
Grunt platform:remove:android Grunt platform:add:android Grunt build:androidPlease, let me know if this resolves your problem.
it worked! However, the only changes I made in the config.xml are the changes that the documentation tells you to make.
Anyway, I think I’ll have a separate project folder for Android that way I can use the original config.xml.
Unfortunately, when I build to my Android phone, the app locks up. Has this build been tested on Android? I’m using a Samsung Note 2. iOS works perfectly, no problems.
If you send me an email address, I can send you a test build.
Yes the app is tested for android. An .apk file is provided in the details screen. Could you please download it and check it?
Could you also please send us your .apk file to test it in our end and look for log messages in details?
I downloaded your APK and the app locks up as well, so it’s not just my APK. I’m on Android 4.4.2 and testing on a Samsung Note 2. I’ll send you links to my APK and my full project source code.
Here’s my APK: https://www.dropbox.com/s/9kmnuh4elv7uo49/CTG.apk?dl=0
I’m having some trouble uploading my project to Dropbox. I’ll post it when I’m successful uploading.
Since I’m building the Android app via command line, I don’t have any access to logs when running on the device. How do I get the app to log? In Xcode there is a console when I run it through there.
Were you able to test the Android version on your side?
Hi
i managed to install the app by using Genymotion Emulators for 5.0.0 and 4.4.4 version of android:
- 4.4.4: http://www.screencast.com/t/0BINrnLV - 5.0.0: http://www.screencast.com/t/ufu5igAtSA
In 4.3.x it seems that there are some layout issues in the home page. The most obvious reason is that the WebView in this version is not supporting the CSS rules that are used. Apart that the rest of the screens seems to be rendered properly
- 4.3.x: http://www.screencast.com/t/NTJmdRy8q - 4.3.x: http://www.screencast.com/t/5D1sLWDBE
To get the log messages you should use the “monitor” application located in the android SDK folder. Once a device, virtual or physical, is running or connected to your computer it will appear in the related list. The logcat window collects all the messages
http://www.screencast.com/t/PDTe0N4Zi1KIn my case (MacOS) the monitor binary is located in the path marked in this screen capture
http://www.screencast.com/t/9oLhpNeP4The problem isn’t installing the app. The app installs fine.
The app crashes when I fetch the JSON feed in either the News or Galleries. I added the cordova whitelist plugin, along with adding this line to the config.xml:
<allow-navigation href="*" />
It didn’t seem to fix anything. In the Logcat I’m not really getting any errors, except one about the cordova whilelist. I don’t know, but the logger just keeps going and going.
This is the error:
No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.”, source: file:///android_asset/www/plugins/cordova-plugin-console/www/console-via-logger.js (173)
I do know that the app does crash when trying to download the JSON feed. Can you investigate this please?
Yes, but you are testing in the emulator. I’m testing on a real device. A Samsung Galaxy Note 2. I can assure you that it is crashing, although I don’t know how to debug it. I tried using the logger, but it just keeps going and going.
Can you test the app on a real device?
Keep in mind that I experienced the crash on your demo APK as well, not just my APK.
I don’t think that the link to the JSON file is a problem, but here it is:
https://s3-us-west-2.amazonaws.com/cisnerostraininggroup/news.jsonI tried these two emulators using Genymotion and it crashed on both. Same as on the device:
https://www.dropbox.com/s/yfsiha3wu7na6ee/Genymotion_GalaxyS5.png?dl=0 https://www.dropbox.com/s/4kva26x624z6ii0/Genymotion_GoogleNexus10.png?dl=0I can sometimes get to the screen where the article is shown (sometimes even on the device), but it locks up there.
It crashes using your APK as well:
https://www.dropbox.com/s/on831cspra40z3z/barebone_genymotion.png?dl=0Please look into these crashes on Android.
We would like to inform you that we look into the apk you sent further. However, it would be useful if you sent us your whole project so we can build it ourselves.
I don’t think it’s necessary for me to send you the whole project, because your APK is crashing as well. I’ve provided a link to my project nonetheless. It’s probably better that you look at your own source and modify your own code:
The app is crashing on the “News” button and “Galleries” button, which are both returning JSON. I only need these two buttons to work cause I don’t use any of the other features of your app, although it is possible that it crashes with other functionality.
Hi
we tested your .apk and works well on Android 5 and 6. We noticed that your apk is does not provides the option to pass the News listing screen and open the details screen for each news entry when we run it on Android 4.4.
We will try to build your project in our end and make it work for Android 4.x. Then we will share our insights with you.
It’s not just my APK. Your APK has the same issues. It’s the same build essentially. The only difference is that I’m linking to another JSON file.
According to the Android developer page, apps should be supported back to Jelly Bean 4.0:
http://developer.android.com/about/versions/android-4.0.htmlYes we are aware about this. It is related to the cordova’s build system that creates the .apk and the target SDKs that are used.
We are working on it and will share our insights with you.
Thank you for reporting that issue and helping us to improve the product.
<platform name="android">
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="22"/>
</platform>
I tried to build the app again from scratch, but I’m getting errors when I do a ‘ionic build android’ or ‘Grunt build:android’:
BUILD FAILED
Total time: 5.992 secs
/PhoneGap/Android/CisnerosTrainingGroup_Android_2/project/barebone- ionic/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command: /PhoneGap/Android/CisnerosTrainingGroup_Android_2/project/barebone- ionic/platforms/android/gradlew with args: cdvBuildDebug,- b,/PhoneGap/Android/CisnerosTrainingGroup_Android_2/project/barebone- ionic/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /PhoneGap/Android/CisnerosTrainingGroup_Android_2/project/barebone- ionic/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /PhoneGap/Android/CisnerosTrainingGroup_Android_2/project/barebone- ionic/platforms/android/cordova/build: Command failed with exit code 1
I tried replacing the ‘config.xml’ with a clean version, but still getting errors.
I was also getting an error on the GoogleAdMob plugin when I would try to build so I removed that plugin.
Can you send me the project files (the whole folder) so I can try to build the Android APK on my own machine?
If your team can’t provide me a solution to get this working on Android, then I will have to request a refund from Envato.
Hi,
please note that the build issue you are facing is not directly related to our code but the Cordova platform itself. It would be out of the scope of this app, and practically not feasible to provide Cordova related support in general.
Our team however made a tremendous work in order to help you out and guide you on how to support your needs.
You have received an .apk file that we managed to make it work for 4.x version of android in our end. Did you try it? Do you confirm that it indeed works also well in your end ?
You have also been provided with the adjustment that should be made in the config.xml file in order to make that happen.
I’m pasting again the part you should add in this file
<platform name="android">
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="22"/>
</platform>
You may understand that it is not possible for us to expose download links for our products to the public. Something that will happen if we share a link here, in this forum.
Keep also in mind that this is a very fast moving technology so things are changing very quick. We are trying to keep pace with all these but before we provide an updated version various tests in our end should be made.
Even though our apps are updating very frequently, some level of Cordova experience is mandatory from the end users.
Finally, that last thing we would like to end up with are clients that are not using the piece of software we are producing and are charged for.
If you are not happy with what you have received, product, code base, documentation and support, the least thing we could do is to provide you back a fully refund. To make this happen faster you could provide us your paypal account and we will send you back the amount you spent for this purchase.
Please let us know how would you like us to proceed.
Thank you
I was able to get it to build. The problem was that ‘ionic platform add android’ would not copy the resources folder to the android folder. After manually copying them over to the ‘res’ folder, then the app would build.
I added this to the config.xml, but it didn’t work when I built it to my phone:
<platform name="android">
<preference name="android-minSdkVersion" value="14"/>
<preference name="android-targetSdkVersion" value="22"/>
</platform>
I appreciate the help and support that you did give for this app, but unfortunately the app is not working for Android. You are selling a cross platform product here on Code Canyon and for me it should work when I build it to Android. I’ve given it a couple of weeks trying to get it to work, but I don’t think it’s going to happen now. It’s a shame because it works perfectly on iOS and your app has the features I need, but I need it to work on Android. I’m only using very few features in the app. Like I said before it crashes on the JSON feeds. I’m not able to debug the reason why it’s crashing
You are testing the app using the Genymotion simulator, but I’m using a real device. I tested your APK in the simulator and it works, but I’m not convinced it works in the device.
I do have almost 4 years experience working with Cordova, so it isn’t the first time I’ve built Cordova apps.
Before I ask for a refund, I would like to try your project that you built the APK with. I do want this to work. Since you don’t want to share the link here, send it to my email address:
info at prismstudios.net
Hello, we currently working on your project in order to build it. Though, we noticed that the /app folder is intact and all the code changes you have made are included only in the /www folder. Since we will build your project again, /www folder will change and all those changes you have made will be discarded. Please, confirm that you are fine with that.
That’s fine. You can even make the changes to the original source code. I did not make that many changes to the source, so either way is fine.
We have built the project and sent the download link to your email. The apk is also tested on a real android 4.4 device and works fine. We hope this helps you. Please, let us know if you need any further help.
Thanks! Adding the cordova-plugin-crosswalk-webview plugin fixed it. I appreciate your help it in getting it to work on Android.
How did you figure out that was the problem?
Glad to hear that. It was nothing more than a matter of prior experience.
Basically, I’m trying to create a pretty simple app. Just a news feeder. I like the format of the the “News” tab because there is a photo besides the text rather than the RSS feeds that don’t have a photo and have an external browser link. I want everything to be in the app.
My question is: How do I create a JSON source like this?
I tried copying your JSON links like “http://skounis.s3.amazonaws.com/mobileapps/bareboneglossy/news.json” and I’m getting an error in JSON readers and I’m unable to read it.
If you can point me to somewhere on how to create a JSON file like yours that will display in the same way. I will probably host it on Amazon S3 as well.
Or maybe send me your news.json file and I’ll just copy it. Thanks.
It looks like the url you sent is not correct. Please try the following: http://skounis.s3.amazonaws.com/mobile-apps/barebone-glossy/news.json
Ok, it worked. Thanks. I copy and pasted the links from the documentation, but they became corrupted.
You are welcome. We are always available to help you.
Hi, I have one more question. What is the “guid” object in the JSON file? Is it necessary? Also, if it is, how do I create them for my own JSON file? Thanks
Also, how do I create a link break in the JSON to create paragraphs. The ”\n\n” is not working on an iPhone
I figured out how to create line breaks in the JSON. See my Stack Overflow question and answer: http://stackoverflow.com/questions/33790595/format-json-for-a-line-break-when-parsed-on-iphone/33796274#33796274
It is nice you figured it out! As for the “guid”, please, take a look at the following wiki https://en.wikipedia.org/wiki/Globally_unique_identifier . You can create it in any way you want but you should make sure they are unique for every record.
Hello, When I do a “grunt build”, the www folder is created but the index.html file is not copied over to the Phonegap folder. I’ve never used ionic, so this is new to me.
This is the error in the terminal that I get when I do “grunt build” :
Warning: Running "sass:dist" (sass) task
Warning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use --force to continue.
Aborted due to warnings.
I installed the Sass gem, but I’m still getting the error and I’m unable to build the project.
I’m building this on OS X.
Also, other Phonegap commands don’t work like ‘cordova platform remove ios’ and ‘cordova platform add iOS’. I can see that the platform folder was created and the iOS folder is there, but it seems incomplete as there isn’t an index.html file.
Never mind, I figured it out. I had to install ionic again. I guess I needed to update ionic and now I can build.
We are glad to hear you managed to setup everything correctly.