Ionic View app Using Proxies - ionic-framework

I've successfully added a proxy to my ionic.config.json files which works when I do 'Ionic Serve' as well as with the Ionic Dev App. However, I'm having trouble loading it in Ionic View.
I saw recently (last week 12/4/17) they added HTTP plugin support with a CORS workaround for the Ionic View mobile app. However I can't seem to load any of my HTTP data from the proxy. Is Ionic View compatible with proxies? I know this issue if fairly new so there isn't much resources out there for it. Any help or lead in the right direction would be appreciated!

Support just got back to me - they have officially added plugins. Support docs are here in case anyone runs into the same issue...
https://ionicframework.com/docs/native/http/
https://github.com/silkimen/cordova-plugin-advanced-http

Related

Ionic 5 Web App Chrome CSS Issues (sc-ion class added)

We ran ionic build --prod for an Ionic Angular project to generate the www folder on a Debian 10 server. Set up the domain and everything works properly.
The problem is that when opening the app in Chrome and sometimes in Safari as well on desktop, the icons, buttons and some other elements don’t show up the same as on localhost when testing with ionic serve. Specifically, a new class is added to some elements “sc-ion” that causes problems in the UI (e.g. the icons don’t have the right line-height, the buttons’ text has a different color, etc.). Please see below some screenshots.
Do you know how we can remove the sc-ion class and keep the styling consistent with what gets displayed with ionic serve on localhost? I look forward to hearing your feedback.
Thanks for your help,
Andy
Hotjar was causing the issues.

How to share ionic app to clients?

What is the best way to share an ionic app to clients in our time?
I was using diawi service. It works great for me but it is not easy for clients. I should explain every time what should they do to run APK file for example.
Ionic provides Ionic View for iOS & Android
https://ionicframework.com/pro/view
You can push your source code to their server and it is built automatically, and gives you a code to hand out to clients.

Cordova Keyboard Plugin doesn't work in ionic View

I've been trying to find an answer why the cordova keyboard plugin doesn't work in ionic view.
In the documentation it says it supports version 1.0.3.. The updated version is 1.0.4. I suspect that's the reason why the keyboard plugin doesn't work in ionic view. How can I downgrade to 1.0.3?
I realize this isn't a direct answer to your question, but...
Personally, I've found Ionic View, while a cool idea, to be mostly just a tool for basic previews. I've noticed all sorts of things don't work within Ionic View, such as overridden back button behavior, rendering inconsistencies, Crosswalk issues, etc.
I've done comparisons of Ionic View rendering directly with running the app on a device (using ionic run) and it very often has differences, even with minimally complex apps. That, to me, is unacceptable in a situation where you need valid prototypes. I previously wasted a lot of time trying to fix some issues that I found out were actually caused by Ionic View. I use the Cordova Keyboard plugin in one of my apps, and I was having issues with the event detection within Ionic View. Those issues didn't happen when I ran the app directly on my devices.
I've since switched to using Google Play Staged Rollouts to alpha/beta test my Ionic apps with multiple people/groups. Changes might not be reflected immediately (since updates need approval), but it will be exactly as the app is going to behave, and that might be the most important consideration of all.
However, if you're absolutely set on using Ionic View, you might consider filing this as an issue on their GitHub page.

Facebook login on Meteor mobile App (cordova)?

I'm looking to build a mobile application using Meteor+Cordova. Looking to get the Facebook login to work first. Apparently the default accounts-facebook package doesn't work so I looked around atmosphere and only found "particle4dev:cordova-fb", so I tried using that.
I'm a bit confused about the app developer stuff. Normally I just use it for my website so its quite straight forward. In terms of setting up the login details (such as ID and token), do I register as if it's an IOS app? Or do I still register as if its web?? It asks me to download XCode SDK for FB, is that what I'm supposed to be doing? is the package mentioned above what I should be using, or are there more mainstream options available?
I was also facing problem with accounts-facebook package. It was using in-app cordova browser and failing at the time of oauth handshake.
I added cordova:com.phonegap.plugins.facebookconnect#0.11.0 to app and enabled it for single sign on from developer account on facebook.
If you face any problem then please look at my blog here. I have written a simple tutorial.
If there are still some people to fix this thing, this may help them.
I've just used the latest version on github.
removing the plugin and adding it again like this:
meteor add cordova:com.phonegap.plugins.facebookconnect#https://github.com/Wizcorp/phonegap-facebook-plugin/tarball/d8b0f6935a7c6e586188bf85f9da88a1c160790b
This above code with particle4dev:cordova-fb worked like a charm on android and it should work on ios devices also. It seems they fixed the issue in their updates.
accounts-facebook package works fine. I just created a new project and tried, you can refer to this screencast http://recordit.co/7JNpDSzJ9m
if you are using accounts-facebook, you need to register the app as web on fb
So I've been trying to use particle4dev:cordova-fb for awhile now. For those who are confused about how to implement it. First you add it as a package to your existing app. Then you add the facebookconnect cordova plugin. Then you add the android platform. Then try and run the android platform (meteor run android --settings settings.json). This should fail. Now go through the steps on implementing facebookconnect on Android. This should make sure it works on android now. However even after doing all of this and getting it to work, it still simply opens up the in app browser on android for some reason.

phonegap 2.2 and facebook integration

I have been recently begin working with phonegap and I notice that there is no tutorial for phonegap 2.2, the most recent version. What's more, since phonegap 2.0 there has apparently been drastic changes. I am having lots of trouble with using phonegap since I am new to web-iphone apps.
I am trying to make an application with phonegap to use facebook log in to get your data (pics, friends, etc) and then post on your facebook page, update status, etc. Basically a social App.
It seems that no tutorial is clear on any facebook-phonegap integration and social web based app.
I have seen a video with phonegap 1.8 tutorial and have followed it very close, only to get many errors.
I followed the one on:
https://github.com/davejohnson/phonegap-plugin-facebook-connect
and have had protocol.
I have tried many different things, but it seems that xcode simply is not able to recognize some functions or protocols. I am looking to see if I missed anything, but Ive added everything according to steps followed.
Ive tried adding the facebook.Framework, the extra headers, heck, Ive even added all of the files from the facebook SDK in the src file of the package:
https://github.com/facebook/facebook-ios-sdk
I cant seem to put together a simple facebook log in app...
anyone got it to work? what are the exact steps to follow? Im good with a new 2.2 cordova project and up until I put the files: FacebookCOnnectPlugin.h and .m that is where everything gets messed up.
I DO have the libsqlite3.0.dylib and HAVE followed the steps, added all the stuff in various .plist and all these weird long and annoying procedures many times...
Ive tried adding various libraries and just can't come up with anything else so why can't I just start a simple cordova project and get the option to log-in connect fb. like a simple hackbook sample.... I get it working in Objective-c demo (new single view application project)... Why does everything have to be so difficult and not working. I just want to get a page to start coding at. Just to get to this point, not even starting is so difficult.
very frustrating....
any help is much appreciated.
-- Im new to web apps and iphone...
I got it working but there are lots of issues and tweaks you need to do in order for it to fully work.
In my experience PhoneGap Plugins do work but you have to play around a lot. E.g. I know for sure the new Facebook SDK is not supported by the PhoneGap plugin. Even if you import the Deprecated Headers. I had to use the older version of the SDK. And also with version 2.7 not all plugins are supported so I had to stick to an older version 2.5 so I could get my project to work.
Even tough I got this plugin to work on iOS, it doesn't work on Android. It's a really good platform to develop on if you're looking for fast productivity but i'm still a bit spectacle on being heavily dependant on the plugins which are not being maintained continuously.
Hope this helps.