hybrid-mobile-app

Data are not showing when two api called in` iondidenter`

荒凉一梦 提交于 2019-12-20 05:47:16
问题 I have one screen, which have two gridview . each grid view will populate some value after api calling. so my page will have 2 api calling. so when i call my api call method under constructor or ionViewDidEnter its not working. it allowing only one method to exeute. here is my two api call method on one page .ts Even i put under my constructor. But its not showing the data. so if i want to call the both api and need to display the data means how can i do that.please help me out. i was not

Menu is not working when i push the screen ionic 3

孤街醉人 提交于 2019-12-20 03:57:15
问题 I have one screen login with home comes with menu, 4 tabs . Like home, about, location, more .And in this case menu working fine. When i login, i use this below code to navigate the screen to home pagewith all tabs , menu. That time its working fine. this.navCtrl.push(TabsPage); And when i am in about screen . I have one button to show some data and when user press ok button it will show one screen with some score data: this is that screen code: <ion-header> <ion-navbar color="navcolr" no

Cordova build android error Execution failed for task ':processDebugResources'

戏子无情 提交于 2019-12-20 03:10:04
问题 I am developing an hybrid mobile app for android and ios with cordova, angularjs and angularmaterial design. I use npm, bower and grund to manage and run build task. I could build ios but not android with error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/xxx/android-sdk/build-tools/23.0.3/aapt'' finished with non

Visual Studio 2015 hybrid app - getting “EPERM, operation not permitted”

和自甴很熟 提交于 2019-12-19 09:59:24
问题 I having kind of absurd situation and I will glad to hear how exactly you guys handling it: I have a Hybrid App project, Visual Studio 2015 Cordova Tools. Inside it, under "res" folder I have app resources. The whole project, including resources, is under source control (TFS). During build, resource files get copied into "..\platforms\android\res" folder. First time, while the folder empty it succeeded - the files get copied as-is (e.g. read-only, since they are under source control). After

What redirect URL to use when redirecting ionic for third party webflow

狂风中的少年 提交于 2019-12-19 04:21:22
问题 I am developing a ionic mobile app in which i want to redirect to a thirdparty webflow which requests users' consent and redirects to the callback url which i should specific for me to grab the token as permission token to make further API calls. Since ionic itself is a html5 mobile app, what do i specify for the redirect url so the control comes back to my mobile app? 回答1: abstract: This isn't exactly what you are asking for, but it works pretty well. The Idea is that you use

Cordova Info.plist NSCameraUsageDescription key is missing

萝らか妹 提交于 2019-12-18 11:18:39
问题 After recent changes Apple requires specific keys if your app attempts to access privacy-sensitive data. So I added NSCameraUsageDescription key in my config.xml like this: <platform name="ios"> <config-file parent="NSCameraUsageDescription" target="*-Info.plist"> <string>We are using a camera to </string> </config-file> </platform> Then cordova build ios --release --device produces the ipa which apparently doesn't have the right info in info.plist. It feels like I'm missing something.

Hybrid app crashing in Android studio with error: Session 'android': Error Launching activity

孤人 提交于 2019-12-18 09:26:47
问题 I am a little new to Android Studio and hybrid application building suing cordova. I am trying to build a Salesforce hybrid app in Android Studio. The project gets cleaned and builds successfully without any errors. But, while installing the APK to emulator it gives an error that Session 'android': Error Launching activity In the Emulator it says: Unfortunately, app has stopped My stack trace is as below: 09-20 01:44:34.430 7462-9492/? W/AudioFlinger: RecordThread: buffer overflow 09-20 01:44

Cordova - routing not working in React Application

天涯浪子 提交于 2019-12-18 07:21:28
问题 I have an existing React application and I'm trying to port it to iOS and Android. I managed to run the application on iOS simply changing from regular routes to hash routes. import { createBrowserHistory, createHashHistory } from 'history'; import { IS_HYBRID_APP, IS_PROD } from 'utils/environment'; export const history = window.cordova ? createHashHistory() : createBrowserHistory(); const connectRouterHistory = connectRouter(history); This approach did not work on Android though. The

Cordova - routing not working in React Application

浪尽此生 提交于 2019-12-18 07:20:31
问题 I have an existing React application and I'm trying to port it to iOS and Android. I managed to run the application on iOS simply changing from regular routes to hash routes. import { createBrowserHistory, createHashHistory } from 'history'; import { IS_HYBRID_APP, IS_PROD } from 'utils/environment'; export const history = window.cordova ? createHashHistory() : createBrowserHistory(); const connectRouterHistory = connectRouter(history); This approach did not work on Android though. The

File download not working in Android using cordova-2.9.0

白昼怎懂夜的黑 提交于 2019-12-18 05:17:14
问题 I am working on a hybird application and it seems very straightforward way to download a pdf file from server using HTML5 anchor download attribute and this is working exactly as expected using below code on desktop browsers. <a href="/path/sample.pdf" download="Test.pdf">Download</a> Challange: But when I am trying to run same code in my Hybird application, using cordova 2.9.0 , when debugging app on mobile; on clicking of Download nothing shows up and download does not start. Am I missing