Quantcast
Viewing all 70870 articles
Browse latest View live

Cant align title with Ionic CSS utilities

Hi, does anyone knows how to vertical align using ionic css flex utiities?

<ion-content>

    <ion-grid fixed style="height: 100%;">

        <ion-row class="ion-align-self-center">
            <ion-col>
                <div class="ion-text-center">
                    <h1 class="app-title">My title</h1>
                </div>
            </ion-col>
        </ion-row>


    </ion-grid>


</ion-content>

This is my code, but when I see it in web console it says that it doesn’t has any effects because the row element is not a grid or flex element. Im using ionic css utilities documentation, I don’t know what im using wrong.

ionic info

Ionic:

   Ionic CLI                     : 6.10.1 (C:\Users\User\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.2.3       
   @angular-devkit/build-angular : 0.901.11
   @angular-devkit/schematics    : 9.1.11
   @angular/cli                  : 9.1.11
   @ionic/angular-toolkit        : 2.3.0

Capacitor:

   Capacitor CLI   : 2.3.0
   @capacitor/core : 2.3.0

Utility:

   cordova-res : not installed
   native-run  : 1.0.0

System:

   NodeJS : v12.18.2 (C:\Program Files\nodejs\node.exe)       
   npm    : 6.14.5
   OS     : Windows 10

1 post - 1 participant

Read full topic


Using a Plugin Not Included in Ionic Native

hello please I’m trying to use a Plugin Not Included in Ionic Native it’s from Cordova but it does not work for me I’m installing the plugin and I’m trying to use it but I don’t know how and I don’t find any documentation about this

1 post - 1 participant

Read full topic

Build issue in Task :capacitor-cordova-android-plugins:processDebugManifest FAILED

> Task :capacitor-cordova-android-plugins:processDebugManifest FAILED
/builds/Ahmed-Galal/moodleapp/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml:47:60-92 Error:
	Attribute uses-feature#android.hardware.location.gps@required at AndroidManifest.xml:47:60-92 has an illegal value=($GPS_REQUIRED), expected 'true' or 'false'
/builds/Ahmed-Galal/moodleapp/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml Error:
	Validation failed, exiting

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':capacitor-cordova-android-plugins:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Manifest merger failed with multiple errors, see logs

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 43s
15 actionable tasks: 15 executed
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/helper/sh_helper.rb:80:in `sh_control_output'
	from /usr/local/lib/ruby/2.6.0/forwardable.rb:230:in `sh'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/helper/gradle_helper.rb:32:in `trigger'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/actions/gradle.rb:60:in `run'
	from /builds/Ahmed-Galal/moodleapp/fastlane/actions/build_android_capacitor.rb:58:in `run'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:261:in `block (2 levels) in execute_action'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:253:in `block in execute_action'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:144:in `block (2 levels) in parsing_binding'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /usr/local/bundle/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/commands_generator.rb:352:in `run'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
	from /usr/local/bundle/gems/fastlane-2.148.1/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'
	from /usr/local/bundle/gems/fastlane-2.148.1/bin/fastlane:23:in `<top (required)>'
	from /usr/local/bundle/bin/fastlane:23:in `load'
	from /usr/local/bundle/bin/fastlane:23:in `<main>'
+------+-------------------------+-------------+
|               fastlane summary               |
+------+-------------------------+-------------+
| Step | Action                  | Time (in s) |
+------+-------------------------+-------------+
| 1    | default_platform        | 0           |
| 2    | build_summary           | 0           |
| 3    | add_git_credentials     | 0           |
| 4    | detect_native_type      | 0           |
| 5    | get_web_dir             | 0           |
| 6    | modify_cap_web_config   | 0           |
| 7    | download_credential     | 0           |
| 8    | build_pro_app           | 130         |
| 9    | cap_sync                | 1           |
| 10   | cap_custom_deploy       | 0           |
| 💥   | build_android_capacitor | 44          |
+------+-------------------------+-------------+

[03:01:25]: fastlane finished with errors
Running after script...
$ run "clean-up"
ERROR: Job failed: command terminated with exit code 1

1 post - 1 participant

Read full topic

Checking if an Ionic popover is open

I would like to check if the popover is open, so that when the user clicks the back button the popover gets dismissed, i managed to dismiss it without checking if it’s open, but it throws an exception when it’s not open, thank you in advance

1 post - 1 participant

Read full topic

Ionic 3 with MS ADAL--> onpremisessamaccountname issu

I’m using MS adal plugin in a Ionic3 project and its working well and I’m receiving all the authenticate data from AD. The only problem is, I’m NOT getting the “onpremisessamaccountname”. We are receiving the “onpremisessamaccountname” from postman but not in the application.

1 post - 1 participant

Read full topic

Forex Trading

It’s a relatively new industry, but the number of service providers or brokers are considerable. Most Brokers are best in their business but trader looks for a broker that fulfill their need according their interest. Our best forex signal provider can also lead you for choosing the best forex broker

1 post - 1 participant

Read full topic

Cartmeds : Online Drug Store

Cartmeds.com is a leading online generic pharmacy that provides generic prescription drugs and over-the-counter medications to customers around the world. We are a team of professionals that cares about you and your family and wants that everyone has the most affordable healthcare products in the world.
Since we completely understand that you require top quality medications for the treatment of your health complications, therefore, we bring you the drugs from established brands and most reputed pharmaceutical companies in the world.

1 post - 1 participant

Read full topic

Ionic4 Production Error

I found below error when build using --prod in ionic4. How to solve and help me.

ERROR in @ionic-native/core/decorators/interfaces.ts(100,22): Error during template compile of ‘Plugin’
Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler.

[ERROR] An error occurred while running subprocess ng.

1 post - 1 participant

Read full topic


View is not updating (ionic5/Angular9)

Hi,

I have a strange issue with this code (ionic5/angular9) :

<ion-item *ngFor="let story of stories; let i = index">
  <ion-grid>
      <ion-row>
          <ion-col col-4>{{story.distanceLabel}}</ion-col>
      

TS

    this.sub = this.gpsProvider.getPositionWatcher()
      .subscribe((data) => {
        if (data.coords) {
          if (data.coords.latitude !== this.coords.latitude || data.coords.latitude !== this.coords.latitude) {
            this.coords = data.coords;
            for (let i = 0; i < this.stories.length; i++) {
              this.stories[i].distanceLabel = this.gpsProvider.getDistanceTxt(this.coords.latitude, this.coords.longitude, this.stories[i].latitude, this.stories[i].longitude);
            }
            alert('test : '+this.stories[0].distanceLabel);
          }
        }
      });

Behavior :

First display : For example i’ve got a distance like : 50 meters
After few seconds, the gps observer launch the alert : ‘test 40 meters’ but my view isn’t refreshed.
If I move to a new page, just before leaving I can see the view up to date (with 40 meters in this case)

What is wrong in my code ?

1 post - 1 participant

Read full topic

Deprecated uiwebview plugin

Hi,
I am trying to build a mobile app using ionic framework and it seems that there are plugins using uiwebview which is deprecated so I can’t build IOS version from my app
I already added WKwebview and updated config.xml file.I tried run this command grep -lr “UIWebView” * and the result was:
ode_modules/cordova-ios/bin/templates/project/www/index.html
node_modules/cordova-ios/bin/templates/project/PROJECT_NAME/Classes/MainViewController.m
node_modules/cordova-ios/tests/spec/unit/fixtures/ios-config-xml/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
node_modules/cordova-ios/tests/spec/unit/fixtures/ios-config-xml/SampleApp/Classes/MainViewController.m
node_modules/cordova-ios/tests/CordovaLibTests/CDVWebViewTest.h
node_modules/cordova-ios/tests/CordovaLibTests/CDVUserAgentTest.m
node_modules/cordova-ios/tests/CordovaLibTests/CDVWhitelistTests.m
node_modules/cordova-ios/tests/CordovaLibTests/CDVWebViewDelegateTests.m
node_modules/cordova-ios/tests/CordovaLibTests/CDVWebViewTest.m
node_modules/cordova-ios/RELEASENOTES.md
node_modules/cordova-ios/guides/Setting Delegates, Preferences and Script Message Handlers in the WebView.md
node_modules/cordova-ios/guides/API changes in 4.0.md
node_modules/cordova-ios/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m
node_modules/cordova-ios/CordovaLib/Classes/Public/CDVUserAgentUtil.m
node_modules/cordova-ios/CordovaLib/Classes/Public/CDVWebViewEngineProtocol.h
node_modules/cordova-ios/CordovaLib/Classes/Public/CDVCommandDelegate.h
node_modules/cordova-ios/CordovaLib/Classes/Public/CDVViewController.m
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.m
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h
node_modules/cordova-ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m
node_modules/cordova-ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
node_modules/@ionic/core/dist/ionic/swiper/swiper.bundle.js
node_modules/@ionic/core/dist/collection/components/slides/swiper/swiper.bundle.js
node_modules/@ionic/core/dist/esm/swiper.bundle-ccdaac54.js
node_modules/@ionic/core/dist/esm-es5/swiper.bundle-ccdaac54.js
node_modules/@ionic/core/dist/cjs/swiper.bundle-f80f3318.js
node_modules/@ionic/core/hydrate/index.js
node_modules/cordova-android/bin/templates/project/assets/www/index.html
node_modules/cordova-plugin-whitelist/README.md
node_modules/cordova-plugin-wkwebview-engine/RELEASENOTES.md
node_modules/cordova-plugin-wkwebview-engine/README.md
node_modules/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewEngine.m
node_modules/.cache/angular-build-dl/content-v2/sha512/92/35/57415489063524eeee1dc2a4bca229fd8e6be3a2809a1560dd95e7c630ee6da2ba5e167df0f0580854b2c927ec2017620fc0f5c67dac9737a9c70a06dc4f
node_modules/.cache/angular-build-dl/content-v2/sha512/ec/8b/d551c73d0d8f334583875c815928bd9d5dd416159deab41a0abcd7269414f26aef2a8a44b26f51214b4090232f3745b7528ce29e0cc6537e3bda963f4e35
node_modules/.cache/angular-build-dl/content-v2/sha512/21/f0/ffe512d1f574ff4dcab3f1a4c83aa3839939f504a16ed96f8f6e2933c76cc568c09ae9dcad9f771f3a72900d896d0b418b3912b1cbadf7a8cb2643d3a359
node_modules/.cache/angular-build-dl/content-v2/sha512/48/1a/caeaa6b2b6bb9fe0d10bd537c1111f3b4305600baf1be811263be26dc050acdf4fcf026febf96a6c819b56eda520e882b381d10c28b62de9913a79d44337
platforms/ios/AX WF Approval/Classes/MainViewController.m
platforms/ios/AX WF Approval/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m
platforms/ios/www/swiper-bundle-ccdaac54-js-es2015.js.map
platforms/ios/www/swiper-bundle-ccdaac54-js-es5.js.map
platforms/ios/www/swiper-bundle-ccdaac54-js-es5.js
platforms/ios/www/swiper-bundle-ccdaac54-js-es2015.js
platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m
platforms/ios/CordovaLib/Classes/Public/CDVUserAgentUtil.m
platforms/ios/CordovaLib/Classes/Public/CDVWebViewEngineProtocol.h
platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegate.h
platforms/ios/CordovaLib/Classes/Public/CDVViewController.m
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.m
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h
platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m
platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj
plugins/cordova-plugin-whitelist/README.md
plugins/cordova-plugin-wkwebview-engine/RELEASENOTES.md
plugins/cordova-plugin-wkwebview-engine/README.md
plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewEngine.m
www/swiper-bundle-ccdaac54-js-es2015.js.map
www/swiper-bundle-ccdaac54-js-es5.js.map
www/swiper-bundle-ccdaac54-js-es5.js
www/swiper-bundle-ccdaac54-js-es2015.js

3 posts - 2 participants

Read full topic

Splash screens and icons template for Affinity Designer

Good news, everyone!

TLDR: Ionic Splash and Icons

I just had to prepare the app I’m working on for three new clients. Worst part of the job is always creating a s#!tload of splash screens and icons. So I created a template file for Affinity Designer to simplify the process.

If you happen to use Affinity Designer, feel free to grab the template - probably will save you some work.
Ionic Splash and Icons

If you don’t know Affinity Designer, but you have to deal with gfx elements (and I believe most of you have), I highly recommend you to give it a try.

1 post - 1 participant

Read full topic

Suggestions for a tree inside a splitter

I have to say I’m disappointed that ionic doesn’t include a tree component as a part of its framework. Many apps have a pattern with a tree on the left, then a splitter, then a content area to the right. Think of your favorite mail program.

I am new to ionic - and after searching a bit, I haven’t found just want I want. I’m going to play with angular/material mat-tree - but it lacks a lot.

I’ve read suggestions that we roll our own - make a list or accordion based tree as a component - but this seems like a lot of work that I would have hoped would come with the framework (as I said.)

Before I start rolling my own - I thought I would just ask for suggestions. Is there something I missed - or does someone have experience with something that worked well?

thank you very much - I appreciate any help!

Gene

1 post - 1 participant

Read full topic

Android build failed after adding onesignal-cordova-plugin

Hello, I am facing some problems with integrating a push notification feature to my app, same error is showing with phonegap and firebase, any idea? I think it’s a plugin issue but can’t figure out which plugin is causing the problem! If I remove the push notification plugin the app builds successfully

This is my package.json:

“dependencies”: {

"@angular/animations": "5.2.11",

"@angular/common": "5.2.11",

"@angular/compiler": "5.2.11",

"@angular/compiler-cli": "5.2.11",

"@angular/core": "5.2.11",

"@angular/forms": "5.2.11",

"@angular/platform-browser": "5.2.11",

"@angular/platform-browser-dynamic": "5.2.11",

"@ionic-native/app-version": "^4.20.0",

"@ionic-native/core": "4.20.0",

"@ionic-native/facebook": "^4.20.0",

"@ionic-native/geolocation": "^4.3.2",

"@ionic-native/http": "^4.20.0",

"@ionic-native/in-app-browser": "^4.20.0",

"@ionic-native/ionic-webview": "^5.26.0",

"@ionic-native/market": "^4.20.0",

"@ionic-native/network": "^4.20.0",

"@ionic-native/onesignal": "^3.14.0",

"@ionic-native/social-sharing": "^4.20.0",

"@ionic-native/splash-screen": "4.20.0",

"@ionic-native/status-bar": "4.20.0",

"@ionic/storage": "2.2.0",

"cordova-android": "8.1.0",

"cordova-browser": "6.0.0",

"cordova-ios": "^5.1.1",

"cordova-plugin-advanced-http": "^2.4.1",

"cordova-plugin-app-version": "^0.1.9",

"cordova-plugin-device": "^2.0.2",

"cordova-plugin-file": "^6.0.2",

"cordova-plugin-geolocation": "^4.0.2",

"cordova-plugin-inappbrowser": "^3.2.0",

"cordova-plugin-ionic-keyboard": "^2.2.0",

"cordova-plugin-ionic-webview": "^5.0.0",

"cordova-plugin-market": "^1.2.0",

"cordova-plugin-network-information": "^2.0.2",

"cordova-plugin-splashscreen": "^5.0.2",

"cordova-plugin-statusbar": "^2.4.2",

"cordova-plugin-whitelist": "^1.3.3",

"cordova-plugin-x-socialsharing": "^5.6.6",

"cordova-res": "^0.14.0",

"es6-promise-plugin": "^4.2.2",

"ionic-angular": "3.9.9",

"ionic-img-viewer": "^2.9.0",

"ionic-rating": "^2.0.0",

"ionic-selectable": "^3.4.0",

"ionic3-star-rating": "^2.1.2",

"ionicons": "3.0.0",

"ngx-rating": "0.0.9",

"onesignal-cordova-plugin": "2.1.2",

"rxjs": "5.5.11",

"sw-toolbox": "3.6.0",

"web-animations-js": "^2.3.2",

"zone.js": "0.8.29"

},

“devDependencies”: {

"@ionic/app-scripts": "3.2.4",

"@ionic/lab": "3.1.7",

"typescript": "2.6.2"

},

“description”: “An Ionic project”,

“cordova”: {

"plugins": {

  "cordova-plugin-advanced-http": {

    "OKHTTP_VERSION": "3.10.0"

  },

  "cordova-plugin-inappbrowser": {},

  "cordova-plugin-x-socialsharing": {

    "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",

    "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."

  },

  "cordova-plugin-app-version": {},

  "cordova-plugin-market": {},

  "cordova-plugin-network-information": {},

  "cordova-plugin-whitelist": {},

  "cordova-plugin-statusbar": {},

  "cordova-plugin-device": {},

  "cordova-plugin-splashscreen": {},

  "cordova-plugin-ionic-keyboard": {},

  "cordova-plugin-geolocation": {},

  "cordova-plugin-ionic-webview": {},

  "onesignal-cordova-plugin": {}

},

"platforms": [

  "ios",

  "android",

  "browser"

]

}

}

1 post - 1 participant

Read full topic

Ionic tab bar Button Is Cutting Off, If I Give margin bottom to It. I Want It On Front Side Please Help Me

Facebook Login Capacitor Cordova

Hello, I wanted information about the use of https://ionicframework.com/docs/native/facebook
Suggest Cordova, my project is in Capacitor.
I also readed: https://capacitorjs.com/docs/cordova/using-cordova-plugins
I don’t see that there is conflict according to this docs: https://capacitorjs.com/docs/cordova/known-incompatible-plugins

Someone could tell me how to implement the Login with Facebook, I will try it in Browser for later on an Android device.

With it working in Browser it would be fine.

Kind Regards!
Federico Ciampi

1 post - 1 participant

Read full topic


Ionic and Google Form

Hi. I’m trying to post responses to Google Form. There’s some tutorial or something to learn to do this?

I’m working with Ionic CLI 5.4.16 and Cordova 9.0.0

Thanks.

1 post - 1 participant

Read full topic

Get hour and minute ion-datetime

How to get only hour and minute in ion-datetime ?

<ion-datetime displayFormat="HH:mm" placeholder="00:00hs" [(ngModel)]="timePanel.timeOff"></ion-datetime>

this is result actualy
2020-07-22T13:41:52.438-03:00

2 posts - 2 participants

Read full topic

Ionic cordova camera.getPicture error

My ionic app where it takes picture from cordova camera function.It goes no where from there…
I am using ionic app with cordova camera plugin to take pictures. I have tried everything to make it work. but it consistently failing whatever I do. I have upgraded entire env. Moved everything to latest version. Used chrome remote device debug env. but no luck.
I am deploying everything on android emulator and testing it there.
Please provide any suggestion if i am missing any config.


  const cameraOptions: CameraOptions =  {
      quality: 100,
      destinationType: this.camera.DestinationType.FILE_URI,
      // encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE,
      sourceType: this.camera.PictureSourceType.CAMERA,
      saveToPhotoAlbum : true
     }
     try {
       let obj = this.camera.getPicture(cameraOptions).then((imageData) => {
    // never entered here
         console.log('getPicture Success '); 
         // let base64Image = 'data:image/jpeg;base64,' + imageData;
         let base64Image = imageData;
         this.capturedSnapURL = base64Image;
         alert(this.capturedSnapURL);
       }, (err) => {
         alert('error=' + err); // never entered
         console.log(err);
       });
      alert('no error but no picture:' + obj); // always print this [object Promise]
    } catch (error) { 
      alert('exception error' + error); //never entered he```re
    }

I have been trying above code from quite sometime, it never entered success block nor in error block of then() of getPicture. Never printed ‘getPicture Success’ or error.
It only shows “no error but no picture:[object Promise]” message. I tried debug this also using remotedevice option in emulator. It comes in till getPicture function call and then get lost. No error or exception.

I have tried many solutions as suggested but no luck…I have upgraded ionic, angular ,cordova,nodejs to latest version to resolve this issue but no luck. Here the version details

Ionic:
   ionic (Ionic CLI)             : 4.12.0 (/usr/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 5.2.3
   @angular-devkit/build-angular : 0.1000.3
   @angular-devkit/schematics    : 10.0.3
   @angular/cli                  : 10.0.3
   @ionic/angular-toolkit        : 2.2.0
Cordova:
   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.1.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 11 other plugins)

System:
   Android SDK Tools : 26.1.1 (...~/Android/Sdk)
   NodeJS            : v12.18.2 (~/node-v12.18.2-linux-x64/bin/node)
   npm               : 6.13.4
   OS                : Linux 3.10

Note that i have been trying this on android emulator. here is my package.json.

{
  "name": "mygrd",
  "version": "0.0.1",
  "author": "Ionic Framework",
  "homepage": "https://ionicframework.com/",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^10.0.4",
    "@angular/core": "^10.0.4",
    "@angular/forms": "^10.0.4",
    "@angular/http": "^7.2.16",
    "@angular/platform-browser": "^10.0.4",
    "@angular/platform-browser-dynamic": "^10.0.4",
    "@angular/router": "^10.0.4",
    "@ionic-native/android-permissions": "^5.27.0",
    "@ionic-native/camera": "^5.27.0",
    "@ionic-native/core": "^5.26.0",
    "@ionic-native/http": "^5.27.0",
    "@ionic-native/splash-screen": "^5.26.0",
    "@ionic-native/status-bar": "^5.26.0",
    "@ionic-native/uid": "^5.26.0",
    "@ionic-native/unique-device-id": "^5.26.0",
    "@ionic/angular": "^5.2.3",
    "@ionic/angular-toolkit": "^2.2.0",
    "@ionic/pro": "2.0.4",
    "cordova-android": "^8.1.0",
    "cordova-hot-code-push-plugin": "1.5.3",
    "cordova-plugin-android-permissions": "1.0.2",
    "cordova-plugin-camera": "4.1.0",
    "cordova-plugin-device": "^2.0.3",
    "cordova-plugin-file": "6.0.2",
    "cordova-plugin-filepath": "1.5.8",
    "cordova-plugin-ionic-keyboard": "^2.2.0",
    "cordova-plugin-ionic-webview": "^3.1.2",
    "cordova-plugin-splashscreen": "^5.0.4",
    "cordova-plugin-statusbar": "^2.4.3",
    "cordova-plugin-unique-device-id2": "2.0.0",
    "cordova-plugin-uniquedeviceid": "1.3.2",
    "cordova-plugin-whitelist": "^1.3.4",
    "cordova-sqlite-storage": "5.0.0",
    "core-js": "^2.6.11",
    "rxjs": "~6.6.0",
    "zone.js": "~0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.1000.3",
    "@angular-devkit/build-angular": "^0.1000.3",
    "@angular-devkit/core": "^10.0.3",
    "@angular-devkit/schematics": "^10.0.3",
    "@angular/cli": "^10.0.3",
    "@angular/compiler": "^10.0.4",
    "@angular/compiler-cli": "^10.0.4",
    "@angular/language-service": "^10.0.4",
    "@ionic/app-scripts": "^3.2.4",
    "@types/jasmine": "^2.8.17",
    "@types/jasminewd2": "^2.0.8",
    "@types/node": "^10.12.30",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.1.4",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "^2.0.6",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "^5.4.4",
    "ts-node": "^8.0.3",
    "tslint": "~5.12.0",
    "typescript": "~3.9.7"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-hot-code-push-plugin": {},
      "cordova-plugin-file": {},
      "cordova-sqlite-storage": {},
      "cordova-plugin-filepath": {},
      "cordova-plugin-android-permissions": {},
      "cordova-plugin-camera": {
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      }
    },
    "platforms": []
  }
}

Last option i have to do everything again android native.

1 post - 1 participant

Read full topic

Ignoring files/links when doing ionic serve

Hi. I’ve starting messing around with Ionic today. I’ve already setup my dev environment and my tabs app is running a-ok.

The only issue I have is that whenever I change the content of a file (without saving) ionic serve crashes. Apparently this happens because the way Emacs handles file modifications: https://emacs.stackexchange.com/questions/29761/what-are-foo-files.

To put it simple, a change in App.tsx will generate a .#App.tsx link, which the build process will try to compile, failing immediately.

[react-scripts] Error: ENOENT: no such file or directory, stat '/path/to/myApp/src/.#App.tsx'

Is there a way to tell Ionic to ignore any file with that pattern?

Thx in advance. Looking forward to be part of the community.

1 post - 1 participant

Read full topic

Getting data out of Cordova Plugin promises

I am using this plugin: https://github.com/jguix/Cordova-Flic


Flic.getKnownButtons(
function(buttons) {
console.log(‘Flic getKnownButtons succeeded’);
console.log('Flic known buttons: ’ + JSON.stringify(buttons));
},
function(message) {
console.log('Flic getKnownButtons failed: ’ + message);
});

How would one get the buttons variable out of the success function from the example above. I assume this is a type of promise as I can read it inside the function but if I try to save it to an external variable it comes out empty.

2 posts - 2 participants

Read full topic

Viewing all 70870 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>