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

Ionic cordova build android throw an error

$
0
0

thank you sir,
but i can’t undastand this lines
And in you User variable path.

C:\Gradle\bin


WKWebView for iOS ionic application

$
0
0

Same problem since today morning. Any solution or direction? thanks.

Ionic 4, appflow & fastlane

$
0
0

Hello,

I try to customize the ios app id at compilation time (it’s based on a property file). For that, I saw that a fastlane plugin exists. So far, I haven’t configure fastlane. But I see that appflow setups it for me and uses gym to build the app. Can I customize the way appflow builds my app? is there a demo somewhere I can use?

Thank you,
Have a nice day,
Sébastien

iOS 13.2 kill() returned unexpected error 1

How to declare and initialize an empty array of objects

$
0
0

…is a really great and productive urge. The problem here is that it didn’t get followed enough, I think. Please keep reading the rest of the thread, because @Tommertom’s later post is better than the one accepted as the solution ATM.

Tree menu in with json

$
0
0

Is this thread in the right place? You’ve put it in the Angular subforum, but it does not look Angular-y at all.

Ionic cordova build android throw an error

Ionic animations in ionic 5 beta

$
0
0

So, Ionic 5 beta is out with an animation controller

Anyone can explain me why I should use this instead of the web animations api which lies underneath and has a very easy api as well?


Aot build, webpack missing module, cannot find module "."

$
0
0

Although this may sound like a daunting task, I would recommend auditing every one of your import statements. I believe one of them is causing this. Especially focus on those involving unusual libraries (i.e. not Ionic or Angular direct dependencies).

LiveReload to Root on File Change

$
0
0

Did you every get an answer to this? I am running my app with “ionic serve” with the live reload feature. When I make code changes the live reload feature reloads the current page rather than reloading the entire app. I have to manually refresh the app. It’s very frustrating. I see that ionic serve executes a command the Angular CLI.

ng run app:serve --host=localhost --port=8100

Thanks

Ionic CLI : 5.2.1 (/usr/local/Cellar/node/7.1.0/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.7
@angular-devkit/build-angular : 0.801.3
@angular-devkit/schematics : 8.1.3
@angular/cli : 8.1.3
@ionic/angular-toolkit : 2.0.0

Ionic iOS build process failing

$
0
0

Hi Everyone

So I’m attempting to build out my test Ionic 5.4.15 app to iOS and I’m having a hell of a time getting it to work. The strange thing is that when I first tried doing this - before I presumably changed something on my system - it all worked fine and I could deploy to my iOS device. Now, however, I’m stuck. Running ionic cap add ios on a fresh Ionic project fails at the

update ios

command.

✖ Updating iOS native dependencies with "pod install" (may take several minutes): 
✖ update ios: 
[error] Error running update: Analyzing dependencies
Downloading dependencies
Installing Capacitor (1.4.0)
Installing CapacitorCordova (1.4.0)
Generating Pods project

It appears that the cocoapods install, or something related to it, is causing the problem.

Running

pod install --verbose

in the /ios/app folder likewise fails, so it seems clear this is where the problem lies.

Initially when I encountered this issue I was receiving the error:

LoadError - cannot load such file -- rexml/document

and I solved that (or perhaps made worse) by installing rexml to my global folder with

sudo gem install -n /usr/local/bin rexml

Now when I run the pod install command I get a different error. To save breaking this down I’m going to paste the full verbose output here. I hope someone can shed some light on this. Cheers!

pod install --verbose
Preparing

Analyzing dependencies

Inspecting targets to integrate
Using ARCHS setting to build architectures of target Pods-App: (``)

Fetching external sources
-> Fetching podspec for Capacitor from ../../node_modules/@capacitor/ios
-> Fetching podspec for CapacitorCordova from ../../node_modules/@capacitor/ios

Resolving dependencies of Podfile
/Users/–user–/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/cdn_source.rb:326: warning: URI.encode is obsolete
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local
because checking is only perfomed in repo update

Comparing resolved specification to the sandbox manifest
A Capacitor
A CapacitorCordova

Downloading dependencies

-> Installing Capacitor (1.4.0)

-> Installing CapacitorCordova (1.4.0)

  • Running pre install hooks

Generating Pods project

  • Creating Pods project
  • Installing files into Pods project
    • Adding source files
    • Adding frameworks
    • Adding libraries
    • Adding resources
    • Adding development pod helper files
    • Linking headers
  • Installing Pod Targets
    • Installing target Capacitor iOS 11.0
      • Generating module map file at Pods/Target Support Files/Capacitor/Capacitor.modulemap
      • Generating umbrella header at Pods/Target Support Files/Capacitor/Capacitor-umbrella.h
      • Generating Info.plist file at Pods/Target Support Files/Capacitor/Capacitor-Info.plist
      • Generating dummy source at Pods/Target Support Files/Capacitor/Capacitor-dummy.m
    • Installing target CapacitorCordova iOS 11.0
      • Generating module map file at Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap
      • Generating umbrella header at Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h
      • Generating Info.plist file at Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist
      • Generating dummy source at Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m
  • Installing Aggregate Targets
    • Installing target Pods-App iOS 11.0
      • Generating Info.plist file at Pods/Target Support Files/Pods-App/Pods-App-Info.plist
      • Generating module map file at Pods/Target Support Files/Pods-App/Pods-App.modulemap
      • Generating umbrella header at Pods/Target Support Files/Pods-App/Pods-App-umbrella.h
      • Generating dummy source at Pods/Target Support Files/Pods-App/Pods-App-dummy.m
  • Generating deterministic UUIDs
  • Stabilizing target UUIDs
  • Running post install hooks
  • Writing Xcode project file to Pods/Pods.xcodeproj
    /Users/–user–/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/cdn_source.rb:326: warning: URI.encode is obsolete
    CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local
    because checking is only perfomed in repo update

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

— Command

/usr/local/bin/pod install --verbose

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.8.4
        Ruby : ruby 2.8.0dev (2020-01-16T06:36:38Z master fce54a5404) [x86_64-darwin19]
    RubyGems : 3.1.2
        Host : Mac OS X 10.15.2 (19C57)
       Xcode : 11.3.1 (11C504)
         Git : git version 2.21.1 (Apple Git-122.3)
Ruby lib dir : /Users/--user--/.rvm/rubies/ruby-head/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 47ca3d28aeb876cb0d4eecc799a05ad19afa0d15
               trunk - CDN - https://cdn.cocoapods.org/

Plugins

cocoapods-deintegrate : 1.0.4
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.1.0
cocoapods-trunk       : 1.4.1
cocoapods-try         : 1.1.0

Podfile

platform :ios, '11.0'
use_frameworks!

# workaround to avoid Xcode 10 caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  # Automatic Capacitor Pod dependencies, do not delete
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  
  # Do not delete
end

target 'App' do
  capacitor_pods
  # Add your Pods here
end

Error

ArgumentError - wrong number of arguments (given 2, expected 1)
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/nanaimo-0.2.6/lib/nanaimo/writer.rb:35:in `initialize'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/nanaimo-0.2.6/lib/nanaimo/writer/pbxproj.rb:13:in `initialize'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/xcodeproj-1.14.0/lib/xcodeproj/project.rb:364:in `new'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/xcodeproj-1.14.0/lib/xcodeproj/project.rb:364:in `block in save'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/atomos-0.1.3/lib/atomos.rb:21:in `block in atomic_write'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/2.8.0/tempfile.rb:291:in `open'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/atomos-0.1.3/lib/atomos.rb:17:in `atomic_write'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/xcodeproj-1.14.0/lib/xcodeproj/project.rb:363:in `save'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:56:in `block (2 levels) in write!'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:145:in `message'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:42:in `block in write!'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:41:in `each'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer/xcode/pods_project_generator/pods_project_writer.rb:41:in `write!'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:326:in `block in create_and_save_projects'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/user_interface.rb:64:in `section'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:303:in `create_and_save_projects'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:294:in `generate_pods_project'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:173:in `integrate'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/installer.rb:162:in `install!'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/command/install.rb:52:in `run'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:52:in `run'
/Users/--user--/.rvm/rubies/ruby-head/lib/ruby/gems/2.8.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
/usr/local/bin/ruby_executable_hooks:24:in `eval'
/usr/local/bin/ruby_executable_hooks:24:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Issue When Runnig application

$
0
0

Thank you. but this is code that ionic start create

[iOS] App name of two words showing as one word (both words connected)

$
0
0

Hi,

I’m having this weird problem on ios where the app name should be two words, the two words are there but linked, no space.

When I got to iPhone settings, I see the name two words with space, so it’s normal, no problem there, but in the home screen space is gone.

Anyone face such problem? How to fix?

Left align ionic-title in the navbar?

$
0
0

put this in yout global.scss or .scss of a specific page that you want the title to be left or centered:

for me I wanted it to be centered but without the default padding added by ionic so it can show the whole title. you can align it left and add padding to padding-inline-start instead of 0

.ios {
  ion-header {
    ion-title {
      padding-inline-start: 0;
      padding-inline-end: 0;
      text-align: center;
  
    }
  }
}

Good luck!

GeoLocation GPS

$
0
0

Hi every one, I have a doubt, I am developing an application, in which I draw a route in a certain sector through kml files, but I can’t get the location marker to move as the device moves, from google console use google maps javascript.

I would greatly appreciate your help.


No provider for ChangeDetectorRef

$
0
0

I got this error when I moved the ChangeDetectorRef injection from my page components into a shared service. Moving the injection back to the page component resolved the error.

How to use facebook auth integration in Ionic 4 capacitor app

$
0
0

Are you sure this is fatal? Sounds like a warning to me.

Can we use query params in ionic4?

$
0
0

There are a lot of contexts in which you might be talking about “query params”: to pass junk around via the router in internal URLs, when talking to backends. I’m not sure exactly what you’re referring to here, but some generic comments:

There are very few (if any) things that one cannot do in an Ionic/Angular app that one could do in a non-Ionic Angular app. There are a few things I wouldn’t do, such as include another UI toolkit like Bootstrap, simply because I think it would be a case of “too many cooks spoiling the broth”.

Regarding security, as long as you are in control of what goes into the query params, there isn’t much to worry. about. Once you start accepting user-supplied data and feeding it to parts of your app that expect it to be sanitized from malicious injection, things get a bit hairier. Angular protects you from a lot of these attack vectors, and as long as you don’t subvert its efforts (by blindly having DomSanitizer mark stuff trusted), you should be fine. I don’t know of anything Ionic does here that would add any additional risk.

Feel free to respond with more detail if you have some specific workflow or attack scenario you are concerned about.

Ionic 3 read SMS plugin for OTP Verification

$
0
0

Thanks for your suggestion.i will check

How to use facebook auth integration in Ionic 4 capacitor app

$
0
0

Yes, its warning. Due to warning, gradle was not working properly. Sync with Gradle option in Android Studio resolved this issue.

Viewing all 228535 articles
Browse latest View live


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