hybrid-mobile-app

Cordova - Unable to trigger Android to let me choose an image to upload

时光怂恿深爱的人放手 提交于 2019-11-28 13:12:06
I am using Cordova to wrap a third party iframe. In the iframe there is an upload button. It works on iOS , I am able to select a photo to upload (see screenshot below). On Android though nothing happens when I click the upload button that should prompt the user to open the gallery to select a file. There are no errors in the console but I found this error in LogCat : No activity found to handle file chooser intent: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=.jpg,.png,.tiff,

Angular 2 And Ionic for Web and Mobile App

拟墨画扇 提交于 2019-11-28 11:41:34
问题 For my school project i have to build a web and a mobile app (doing mostly the same things). And i'm wondering how i should proceed to build them. I'm going to use Ionic 2 for my mobile App and was thinking about Angular 2 for my Web App since ionic is based on angular i could use it. I've read in another thread that i could just take the www folder of my ionic project and change the css for the web app. My question is with which one to begin, create the mobile app first or the web app first

Decrease loading time from coldstart in cordova ionic

左心房为你撑大大i 提交于 2019-11-28 09:24:26
I have created a cordova app using ionic, When i open my app from coldstart, It first loads the splash screen, then there are a few seconds when the screen is white as my index.html file loads and then the app UI is loaded and displayed. This takes approximately 10 seconds on a Moto X which is too long since my app contains features in which speed is of the essence. There is no network request that takes place during the loading from coldstart. Is there any optimization techniques that can decrease the loading time to make the app load as fast as other hybrid apps like gmail. There is a lot of

NavController doesn't work in Ionic 4

廉价感情. 提交于 2019-11-28 06:23:25
I'm injecting NavController in my constructor as I want to push a page. But, below code doesn't work in Ionic 4. It was totally okay in Ionic 3. Constructor constructor(public menuCtrl: MenuController, public navCtrl: NavController) { this.menuCtrl.enable(true); } Method goToSecondPage() { this.navCtrl.push(list); } Now, to complete the final step and implement those routes in our app-routing.module.ts file, they would look like this: const routes: Routes = [ { path: '', redirectTo: '/home', pathMatch: 'full' }, { path: 'home', loadChildren: './pages/home/home.module#HomeModule' }, { path:

Appium/wdio - unable to dismiss location permissions alert on Android

假装没事ソ 提交于 2019-11-28 06:17:45
问题 I'm using webdriver.io to write a suite of Appium tests for a hybrid Cordova App. "appium": "^1.10.0", "wdio-appium-service": "^0.2.3", "wdio-jasmine-framework": "^0.3.8", "webdriverio": "^4.14.1", In one of my tests I am trying to programmatically accept the Location Permissions native modal presented on App launch on top of the WebView. I can easily do so in iOS using browser.alertAccept() but the latter does not seem to work for Android. I also tried to switch to the native context to

Phonegap : capture Image, Video and Send as Attachment in Email

廉价感情. 提交于 2019-11-28 05:22:09
问题 I try to capture image and video from android/ Ios device and send them through email. I Want to make a hybrid app. so I use phonegap latest release for that. I search over Internet and found some of code and arrange them together. Now I want that user can capture only 2 videos, and my code for that working fine. but now when I try to capture image, then its not working. Image not store locally. I also want that user can capture only 5 images and when click on "send" button, That captured

Phone gap vs React Native [closed]

旧巷老猫 提交于 2019-11-27 19:53:42
问题 I'm embarking on a side project. Its a native hybrid app. I've used Phonegap / Ionic / Angular a lot to build apps quickly. I'm researching React Native at the moment. Has anyone who's used both of these have any comments or +/- about each one? 回答1: I've used both extensively. We have been using React Native in production for about 5 months now, and have previously worked with Ionic / Angular, and Phonegap projects for 3 years. Here are the pros and cons of React Native, in my opinion, from

Struggling between native and phonegap, simple app requirements

帅比萌擦擦* 提交于 2019-11-27 10:12:31
I'm going to make a native (meaning; not in the browser) mobile app. Since I'm a web-developer I'm struggling to decide whether or not I should try Phonegap or just build an native app in java or objective-c. The app requirements are simple. GPS/wifi location, Facebook integration and I guess I'll need a database to handle some of the application specific Facebook-friend relations. Like the highscores in a game, for example - stuff like that. I'm a web-developer, and don't know neither java or objective-c, yet. I've never used Phonegap before, so I don't know if it's capable of fulfilling my

Error: Cannot find module '@ionic/app-scripts'

杀马特。学长 韩版系。学妹 提交于 2019-11-27 10:09:31
问题 I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts' 回答1: app-scripts currently compatible with node 6 and 7. İf you installed node 8, then please uninstall and install node 6 stable version. This solved error and now i can use ionic 3, angular 4 . Take care! 回答2: Try installing app

Visual Studio, Ripple Emulator and CORS/Cross Domain Ajax

跟風遠走 提交于 2019-11-27 07:48:00
问题 I have an issue with Visual Studio when working on a multi device hybrid app. When I try do to an ajax call to an external webservice, and get some errors in ripple. (Cross Domain Security issues). My code works fine when deploying to a mobile device. From research I found the following: Ripple has its own proxy settings In Ripple, go to settings, and choose local, disabled, or remote (depending on your situation) on the proxy setting. This seemed to work for some people, but I now have a