Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 230100 articles
Browse latest View live

Page flickers as page scrolls after ios 12

$
0
0

The same application works well in ios 11. However, images are reloaded as the page scrolls at ios 12. Looks like you got a render problem. Also slide transitions are not fluid.


How to add textarea in prompt alerts?

$
0
0

How to add textarea in prompt alerts ?

[Ionic 4] Capacitor no Push Notification any alternative?

$
0
0

Hi,
I’m struggling to use the Capacitor PushNotification functionality and having issues, and searching on Google landed me on this topic.

I register the device on FCM using Capacitor PN method successfully, I get a token back, which I store in my users database as well. I verify that when I try to push a new notification through Firebase console, it shows me that 1 device will be getting the notification, which means the device is registered properly.

However although I add a Listener properly (i.e. PushNotifictions.addListener(‘pushNotificationReceived’, (notification: PushNotification) => { //code to process notification }, the listener is never triggered when a push notification is send via the Firebase console.

Full code here:

    PushNotifications.addListener('registrationError', (error: any) => {
      console.log('error on register ' + JSON.stringify(error));
    });
    PushNotifications.addListener('registration', (token: PushNotificationToken) => {
      console.log('token ' + token.value);
      this.user.pnToken = token.value;
      Device.getInfo().then((data) => {
        this.user.devUUID = data.uuid;
        this.user.platform = data.platform;
      }).then(() => {
        this.auth.saveUser(this.user);
        PushNotifications.addListener('pushNotificationReceived', (notification: PushNotification) => {
// ----->>> this is never hit 
          console.log('notification ' + JSON.stringify(notification));
        });
      })
    });
    PushNotifications.register();

(note: I tried reordering the register & addlistener calls the other way round, but behaviour is the same)

Ionic Info:

Ionic:

   ionic (Ionic CLI)             : 4.3.0
   Ionic Framework               : @ionic/angular 4.0.0-beta.15
   @angular-devkit/build-angular : 0.8.6
   @angular-devkit/schematics    : 0.8.6
   @angular/cli                  : 6.2.6
   @ionic/angular-toolkit        : 1.1.0

Capacitor:

   capacitor (Capacitor CLI) : 1.0.0-beta.8
   @capacitor/core           : 1.0.0-beta.8

Any idea what is going wrong?

Thanks
Chris

Ionic cordova emulate ios

$
0
0

Hello All,

I´m following the instructions from IonicFramework website “https://ionicframework.com/docs/v1/getting-started/

I can create the project v1, and add the platform, but when i use “ionic cordova build ios” I can´t see the build forlder, so I try “ionic cordova emulate ios” and I get this error :

platforms/ios/build/emulator/GTWorldUK.app/Info.plist file not found.
[ERROR] An error occurred while running subprocess cordova.
        
        cordova emulate ios exited with exit code 1.
        
        Re-running this command with the --verbose flag may provide more 
        information.

I’m using

  • mac OS : 10.13.6
    *cordova : 8.0.0

Connection to Database

$
0
0

I’m trying to connect to an azure database. The ionic app already does so in parts using an ASP.Net framework and Authenticate Token. This part of the App was not developed by me. I only need to connect to the database and I am very open to getting this working anyway possible. Any help would be appreciated.

Push notification not receiving message in ios

$
0
0

Try building with the legacy build system in Xcode. The Firebase plugin seems to have issues with the new build system.

File > Project Settings -> Legacy Build System.

Also, watch your device log when running via Xcode. Firebase will (usually) log warnings about config issues.

How to downgrade from ionic 4 (beta) to ionic 3 (latest stable)

$
0
0

I’ve developed an application with Ionic 4.0.0-beta.13. But its not working (Showing blank screen) on devices with android version lower than 7.1.1.
This is due to the below running known issue https://github.com/ionic-team/ionic/issues/15191.
So i wan’t to downgrade my Ionic version to latest stable version.
Can someone please help me on how and what changes it needs?

Thanks

Ionic build --prod error: Type ... in ... is part of the declarations of 2 modules:

$
0
0

este problema lo resolvi quitando components.module.ts de la carpeta components ya que hacia referencia en @NgModule({ 2 veces! asi logre solucionarlo


Push notification not receiving message in ios

$
0
0

I already switched to Legacy Build System in Xcode and the plugin-phonegap-push seems to register correctly to service but never executo on(‘notification’) function.

Hide inappbrowser while splashscreen it's loading

$
0
0

yeah, it’s quite easy. Just remove the splashcreen.hide() from app.component.ts (when the app runs) and config.xml (if you have autohide enabled) and then inject the plugin (for example in home.ts) and hide it when you want

How to debug IONIC

$
0
0

Use ‘cordova run android’ then open chrome ‘chrome://inspect’ click your device for inspect. I think it will help you. Use ‘debugger;’ where u want to check.

Connect ionic app to mysql database

$
0
0

Im trying the same and open to doing it any which way

Can't build ios relelase any help

$
0
0

I facing this error every time try to build ios
i tried to remove ios and added it again but didn’t work


Building project: /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/Doctory.xcworkspace

        Configuration: Release
        Platform: device
User defaults from command line:
    IDEArchivePathOverride = /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/Doctory.xcarchive

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/build/device
    SHARED_PRECOMPS_DIR = /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/cordova/build-release.xcconfig':
    CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
    CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
    CODE_SIGN_IDENTITY = iPhone Distribution
    ENABLE_BITCODE = NO
    FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/GoogleMaps/Base/Frameworks" "${PODS_ROOT}/GoogleMaps/Maps/Frameworks" "${PODS_ROOT}/OneSignal/iOS_SDK/OneSignalSDK/Framework"
    GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
    HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/GoogleMaps" "${PODS_ROOT}/Headers/Public/OneSignal"
    OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/GoogleMaps" -isystem "${PODS_ROOT}/Headers/Public/OneSignal"
    OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -l"z" -framework "Accelerate" -framework "CoreData" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreLocation" -framework "CoreTelephony" -framework "CoreText" -framework "GLKit" -framework "GoogleMaps" -framework "GoogleMapsBase" -framework "GoogleMapsCore" -framework "ImageIO" -framework "OneSignal" -framework "OpenGLES" -framework "QuartzCore" -framework "SystemConfiguration" -framework "UIKit" -framework "UserNotifications"
    PODS_BUILD_DIR = ${BUILD_DIR}
    PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
    PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
    PODS_ROOT = ${SRCROOT}/Pods
    SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

2018-11-07 18:05:45.938 xcodebuild[4752:106540]  DTDeviceKit: deviceType from 03b75bb84388fe609ab027d291b68ea2cd3dbc2b was NULL
2018-11-07 18:05:45.994 xcodebuild[4752:106669]  DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:45.994 xcodebuild[4752:106669]  DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:45.995 xcodebuild[4752:106669]  iPhoneSupport: 📱<DVTiOSDevice (0x7fbb36889220), ANagy’s iPhone, iPhone, 12.0.1 (16A404), 03b75bb84388fe609ab027d291b68ea2cd3dbc2b> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=601 "Could not find platform" UserInfo={NSLocalizedDescription=Could not find platform})
2018-11-07 18:05:46.021 xcodebuild[4752:106669]  DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:46.021 xcodebuild[4752:106669]  DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:46.021 xcodebuild[4752:106669]  iPhoneSupport: 📱<DVTiOSDevice (0x7fbb36889220), ANagy’s iPhone, iPhone, 12.0.1 (16A404), 03b75bb84388fe609ab027d291b68ea2cd3dbc2b> unable to mount DeveloperDiskImage (Error Domain=com.apple.dtdevicekit Code=601 "Could not find platform" UserInfo={NSLocalizedDescription=Could not find platform})
2018-11-07 18:05:46.331 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:46.344 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:46.357 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:46.368 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.879 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.886 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.892 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.898 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.951 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.958 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.965 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
2018-11-07 18:05:47.971 xcodebuild[4752:106538] [MT] DTDeviceKit: deviceType from 00008006-0012595236A2002E was NULL
error: archive not found at path '/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/Doctory.xcarchive'
** EXPORT FAILED **

(node:4724) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,Doctory.xcarchive,-exportOptionsPlist,/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/exportOptions.plist,-exportPath,/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/ios/build/device
(node:4724) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4724) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

"Could not find cordova.js script tag. Plugin loading may fail."

$
0
0

For anyone else with this problem, I’ve worked with Ionic Support and they’ve confirmed that this “Could not find…” error is meaningless, and it won’t actually affect your app. If you’re running into errors and see this warning, it’s a red herring and the problem lies elsewhere.

App missing "Cordova-plugin-ionic" after Ionic Pro "Deploy" update

$
0
0

UPDATE:

I’ve gotten past that error by adding to the index.html page, but I’m running into a new problem. The console says that the app has loaded, and “Ionic Native: deviceready event fired after 188 ms”, but the app hangs on the splashscreen. Just a spinning “loading” wheel and nothing actually loading.


Ionic 3 - Device/App will not go to sleep after manually placing the app into the background and re-oping

$
0
0

Hello, sorry if this should actually fall under the Cordova but I was not 100% sure.

So the issue is that the app/device will not go to sleep after it is manually placed into the background via either the home button, the recent app button or accessing google maps app via the app itself. However if you load the app, and then let it be, after the 15 second timeout for the screen, the app/device will sleep correctly and this functionality remains until the above criteria is triggered.

The device this is being tested on is a Samsung J5, Android 7.0 and the display timeout set to 15 seconds.

As a note, I am aware that the insomnia plugin is being used however the issue was the same before it was installed.

Any help or direction would be appreciated, thanks.

Here is my ionic info & package.json

Ionic:

   ionic (Ionic CLI)  : 4.1.2 (C:\Users\******\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.1 (cordova-lib@8.1.0)
   Cordova Platforms     : android 7.1.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, (and 21 other plugins)

System:

   Android SDK Tools : 26.1.1 (C:\Users\*****\AppData\Local\Android\Sdk)
   NodeJS            : v8.11.3 (C:\Program Files\nodejs\node.exe)
   npm               : 6.4.1
   OS                : Windows 10
{
  "name": "************",
  "version": "0.1.6.3",
  "author": "Ionic Framework",
  "homepage": "http://ionicframework.com/",
  "private": true,
  "scripts": {
    "clean": "ionic-app-scripts clean",
    "build": "ionic-app-scripts build",
    "lint": "ionic-app-scripts lint",
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "config": {
    "ionic_webpack": "./config/webpack.config.js",
    "ionic_uglifyjs": "./config/uglify.config.js",
    "ionic_enable_lint": false,
    "ionic_source_map_type": "eval"
  },
  "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/http": "5.2.11",
    "@angular/platform-browser": "5.2.11",
    "@angular/platform-browser-dynamic": "5.2.11",
    "@ionic-native/android-fingerprint-auth": "^4.7.0",
    "@ionic-native/app-version": "^4.9.0",
    "@ionic-native/camera": "^4.7.0",
    "@ionic-native/core": "^4.12.2",
    "@ionic-native/date-picker": "^4.7.0",
    "@ionic-native/geolocation": "^4.7.0",
    "@ionic-native/google-maps": "^4.9.1",
    "@ionic-native/http": "^4.7.0",
    "@ionic-native/in-app-browser": "^4.7.0",
    "@ionic-native/insomnia": "^4.17.0",
    "@ionic-native/keyboard": "^4.15.0",
    "@ionic-native/network": "^4.7.0",
    "@ionic-native/screen-orientation": "^4.7.0",
    "@ionic-native/secure-storage": "^4.7.0",
    "@ionic-native/splash-screen": "4.6.0",
    "@ionic-native/sqlite": "^4.9.0",
    "@ionic-native/sqlite-porter": "^4.9.0",
    "@ionic-native/status-bar": "^4.7.0",
    "@ionic/storage": "^2.1.3",
    "@types/googlemaps": "^3.30.12",
    "asmcrypto.js": "^0.22.0",
    "cordova-android": "7.1.1",
    "cordova-browser": "5.0.4",
    "cordova-build-architecture": "git+https://github.com/MBuchalik/cordova-build-architecture.git#v1.0.4",
    "cordova-custom-config": "^5.0.2",
    "cordova-plugin-advanced-http": "^1.11.1",
    "cordova-plugin-android-fingerprint-auth": "^1.4.5",
    "cordova-plugin-app-version": "^0.1.9",
    "cordova-plugin-camera": "^4.0.3",
    "cordova-plugin-datepicker": "^0.9.3",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-file": "^6.0.1",
    "cordova-plugin-file-transfer": "^1.7.1",
    "cordova-plugin-geolocation": "^4.0.1",
    "cordova-plugin-googlemaps": "^2.4.6",
    "cordova-plugin-inappbrowser": "^2.0.2",
    "cordova-plugin-insomnia": "4.3.0",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^2.1.4",
    "cordova-plugin-media-capture": "^3.0.2",
    "cordova-plugin-network-information": "^2.0.1",
    "cordova-plugin-screen-orientation": "^3.0.1",
    "cordova-plugin-secure-storage": "^2.6.8",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-whitelist": "^1.3.3",
    "cordova-sqlcipher-adapter": "^0.1.12-rc2",
    "cors": "^2.8.4",
    "crypto-js": "^3.1.9-1",
    "es6-promise-plugin": "^4.2.2",
    "ionic-angular": "3.9.2",
    "ionic-cache": "^3.1.3",
    "ionic-img-viewer": "^2.9.0",
    "ionic-plugin-keyboard": "^2.2.1",
    "ionic2-super-tabs": "^4.2.2",
    "ionicons": "3.0.0",
    "minimist": "^1.2.0",
    "moment": "^2.22.1",
    "reflect-metadata": "^0.1.12",
    "rxjs": "5.5.11",
    "sw-toolbox": "3.6.0",
    "typeorm": "^0.2.7",
    "uk.co.workingedge.cordova.plugin.sqliteporter": "^1.0.5",
    "xml2js": "^0.4.19",
    "yarn": "^1.7.0",
    "zone.js": "0.8.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "3.2.0",
    "@types/node": "^9.6.21",
    "sql.js": "^0.5.0",
    "tslint-ionic-rules": "0.0.16",
    "tslint-sonarts": "^1.8.0",
    "typescript": "^2.6.2"
  },
  "description": "An Ionic project",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-android-fingerprint-auth": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-geolocation": {
        "GEOLOCATION_USAGE_DESCRIPTION": "To locate you"
      },
      "cordova-plugin-secure-storage": {},
      "cordova-plugin-network-information": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-camera": {},
      "cordova-plugin-media-capture": {},
      "cordova-plugin-datepicker": {},
      "cordova-plugin-screen-orientation": {},
      "uk.co.workingedge.cordova.plugin.sqliteporter": {},
      "cordova-plugin-app-version": {},
      "cordova-sqlcipher-adapter": {},
      "cordova-plugin-advanced-http": {},
      "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "test-test",
        "API_KEY_FOR_IOS": "test-test",
        "PLAY_SERVICES_VERSION": "15.0.1",
        "ANDROID_SUPPORT_V4_VERSION": "27.+"
      },
      "cordova-build-architecture": {},
      "cordova-custom-config": {},
      "ionic-plugin-keyboard": {},
      "cordova-plugin-insomnia": {}
    },
    "platforms": [
      "browser",
      "android"
    ]
  },
  "platforms": [
    "android"
  ],
  "prettier": {
    "singleQuote": true,
    "trailingComma": "es5",
    "semi": true
  }
}```

Remove focus on ion-input when click on item [Ionic v4]

$
0
0

Were you able to remove the input focus? I have tried the same technique as in Ionic v3 without luck. Please help

Code Signing Error

$
0
0

Hi, in my xcode settings, there were no error when i set the provisioning profile.
BUT when i tried building from cmd:

ionic cordova build ios --prod – --buildFlag=“UseModernBuildSystem=0”

I get this error

Code Signing Error: No profile for team ‘ZXKJ54QXA8’ matching ‘myjiranV1_Dev’ found: Xcode couldn’t find any provisioning profiles matching ‘ZXKJ54QXA8/myjiranV1_Dev’. Install the profile (by dragging and dropping it onto Xcode’s dock item) or select a different one in the General tab of the target editor.
Code Signing Error: Code signing is required for product type ‘Application’ in SDK ‘iOS 12.0’

Ionic 4 Vue JS tabs

$
0
0

Hi! Have you managed to take a look at this yet? Looks like you’re almost there with it so would be great to see it with additional pages added to the tabs.

Xcode couldn't find any provisioning profiles matching

$
0
0

hi, did u figured out the solution yet? i have the same problem, tried removing and adding platfom but that doesnt work.

Viewing all 230100 articles
Browse latest View live


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