He hacked Ionic to create this viral game?
But I wonder how he created that game in Ionic ?
View ArticleHe hacked Ionic to create this viral game?
Check Phaser JS. You can create games on Cordova with PhaserJS. phaser.io Phaser - The fast, fun and free HTML5 Game Framework Desktop and Mobile HTML5 game framework. A fast, free and fun open source...
View ArticleDynamic key value for SQLite storage?
Thanks! What I’m trying to do is save many “options” into “object”. this.storage.set("object",this.option.name) This will save current option.name but when I save another one, it will replace the...
View ArticleDynamic key value for SQLite storage?
Sounds like you’ll want to save/load an array into Storage. So you’ll either have to keep track of the current state and then update that then save it, or load the array from storage before updating...
View ArticleDynamic key value for SQLite storage?
Thanks a lot. I will try this… yes, I’m trying to save a multiple data array object into storage… but It’s been unsuccessful.
View ArticleHow to nav.push outside an ion-tabs?
I have this same issue. I am developing with ionic native for android. somehow this solution didn’t work for me. here is what i am trying close() { this.navCtrl.push(MainPage).then(() => { const...
View ArticleCan't create alert inside onFail function of http request
function is something you pretty much never ever want to type in an Ionic function. Instead you want to utilize the fat arrows syntax, i.e. =>. What does this mean for your code? It means change...
View ArticleIonic Pro DOES NOT support `engines` on `package.json` to define node and npm...
If you need particular versions of node and npm, just make them direct dependencies of your project. If your project and cordova depend on different versions of npm, each will use the appropriate...
View ArticleIonic error during build (Debug failure)
I started to go through my project again and noticed that one HTML document and its .ts file were completely altered. Instead of the HTML / .ts code, both files had been replaced with HTML data from...
View ArticleNot able to store to storage after http request
I already read the docs regarding Ionic Storage and have already imported what is needed. But still can’t seem to get it to work. When I check the localStorage of chrome (I use ‘ionic cordova run...
View ArticleNot able to store to storage after http request
My guess would be that it’s the same issue you’re having in the other thread I responded to.
View ArticleNot able to store to storage after http request
I resolved the other problem by implementing this outside my http call so it can reach my constructor: let alert = this.alerts.create({ //creates alert title: 'Error', subTitle: 'Username/password is...
View ArticleNot able to store to storage after http request
Have you replaced instances of function() {} with fat arrows () => {}?
View ArticleNot able to store to storage after http request
yep I did. changed it from: function(response) {} to: response => {}
View ArticleDynamic key value for SQLite storage?
or is there any way to save option’s name as the key? for instance, this.storage.set(this.option.name, this.option ); In this scenario, it will save option’s attributes into a key that is option’s...
View ArticleNot able to store to storage after http request
Oki dokey. Just making sure. What does your console output if you put console.log(response.data); before response.data = JSON.parse(response.data);
View ArticleDynamic key value for SQLite storage?
That should work . What do you mean by it’s not working?
View ArticleNot able to store to storage after http request
this: console.log(response.data); returns a JSON object {message: "login successful!", public_id: "b8346897-8e20-46ed-a03e-968927a1997c", role_id: "2", status: "200", token:...
View ArticleHow to implement Ionic 4 UI components API methods/properties and events...
Since Angular 5 is super heavy and re-build time takes over 10 seconds, I decided to try Ionic 4 core UI Components with another framework. I think about the old and the good AngularJS or maybe...
View ArticleNot able to store to storage after http request
ok so it already stores to indexeddb, but when i try to do this.store.get('token').then((val) => { console.log('Your token is ', String(val)); it returns ‘Your token is null’ the code sequence is...
View Article