ionic devapp - module card.io does not exist - ionic-framework

my Ionic Devapp randomly stopped working properly. Not sure what I did to cause this.
When I serve my app and open it on the dev app, it opens per norm and everything works. If I close it and reboot it, I get the error
"Module card.io.cordova.mobilesdk.CardIO does not exist."
When I tap "Close", it just gives me a white screen.
Note: I do not use Card.IO in my project, however at some point in the far past I did install Card.io on this project but then removed it. It's been working fine ever since up until now.
I tried adding Card.IO back to the project with:
ionic cordova plugin add card.io.cordova.mobilesdk
npm install #ionic-native/card-io
To see if that would make it happy, but it's still throwing the same error message.
Just wondering if anyone else ever ran into this/has any insight on how to fix this?

Related

Plugin admob-free working on android but not on ios

I am making an app which uses the admob-free plugin.
I am using version 0.12.1 because latest version makes the build crash.
When deploying to android, everything works fine, test ads are showing up. Unfortunately, when deploying to ios, nothing happens: at first I had admob.js.map missing (error 404) and I resolved it by generating the map file and placing it to the right folder.
Now, I have no error but nothing is showing up: interstitual nor banner. Even the little space for the banner is not shown.
How can I make this plugin work? Thanks

Ionic build on mac not updating to latest code

I don't get it!
I've been working with Ionic 3 for months now. I've had no trouble with builds. But for some reason now, every time I build I get the same version of code I previously had.
I've update cordova, so I have cordova 8.
I've deleted my ios platform and rebuild
I've done everything I can think of, and still I can't get the code to update through 'ionic cordova run ios' or through resetting versions and rebuilding through XCode.
I see others have run into this and none of their solutions have worked.
Has anyone figured out what's going on???
This is a big stretch, but I've run into this when using things like Code Push. I'll deploy my latest code to the device, forgetting that after startup Code Push will just go out and grab whatever code I deployed to Code Push last.
Another solution is to run following:
cordova clean
Did you update your Xcode to a beta version? This happened to me after I had updated to Xcode 10 Beta and I had to revert back to Xcode 9. Check your 'xcode-select' output and reset it to the defaults.

The app could not be located

i integrated crashlytics into my unity game, everything worked fine, but then i had to change my package name and my working mail, since then whenever i open the dashboard it gives me an alert "Sorry the app could not be located".
I reinstalled the crashlytics sdk in unity, used new login in prepare fabric tab, but the issue is still there, although the crashlytics seems to be working.
Thanks. Usually this means we aren't detecting the build and run event. Please make sure you are building and running in the relevant IDE. Also, clean your app and dependencies in the native IDE to make sure the bundle ID is updated in all locartions. If you still run into issues, you will need to contact support as your app may be in a weird state in our system.

DeviceInfo native module is not installed correctly

So I tried implementing Facebook Login and followed all the steps accordingly. After having errors with FBSDKcorekit/FBSDKcorekit.h' file not found, I decided to pivot over to working on other components.
Lo' and behold, I have this error giving me trouble now. I followed along with this video: https://www.youtube.com/watch?v=rAXVKapP5cM&t=458s where I used the react-native install react-native-fbsdk and react-native link react-native-fbsdk commands in my terminal.
If it helps, I'm getting the following compile error in my terminal:
The following build commands failed:
CompileC /Users/someUser/desiredProject/ios/build/Build/Intermediates/RCTFBSDK.build/Debug-iphonesimulator/RCTFBSDK.build/Objects-normal/x86_64/RCTFBSDKGraphRequestManager.o RCTFBSDK/core/RCTFBSDKGraphRequestManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
I'm not sure if it was the tinkering around with the react-native-fbsdk or making links to it that caused this error. Note my project was working before I was trying to implement Facebook Login and using the link command.
What's going on here?
Thanks in advance for your time and patience.
edit: Also I did not implement any of the Facebook login code yet since I couldn't get a successful build on Xcode.
#kdizzle Make sure you have the right packager running in the terminal, sometimes you may have a packager associated with another react native project running, this happens because when you stop running an xcode RN project, it doesn't stop the packager in the terminal, and when you start/open another RN project in xcode, it simply checks if a packager is running, doesn't check if it's associated with the current project. So make sure you stop all of the packager instances in the terminal and then open the RN project again.
This may happen when upgrading a project to a newer version of react-native. To fix it,
Stop your packager.
Quit your iOS/android simulator.
Reinstall your modules: rm -rf node_modules && npm install
Restart your packager and simulator, e.g. react-native run-ios
I had this issue and it happened when I changed Hardware within the simulator. To fix it I had to kill the packager and run 'react-native run-ios' again. It didn't happen all the time but when it did this fixed it for me!
Another use is in a Brownfield App. Check your iOS and/or Android react-native versions. If they don't match exactly you will see this error screen too.
For example: I had a react native instance running 0.45.1 while Android had 0.45.0 installed. The solution for me was to make sure everything was running the same version.
None of the above answers have worked for me, so I researched the 'react-native' options a little and ended up:
Deleting the iOS and android folders from the app directory altogether
Running 'react-native eject'
Re-running 'react-native run-ios'
After that the iPhone emulator seemed to have no problem with the app.
This problem would appear when React Native libraries in ios project can not found.
I happend to meet this problem when i update my react-native version from 0.42 to 0.44, and cause that a file named RCTConvert+Map disappear in 0.44, so i update my pod.
command: pod update

My Ionic app works fine on browser but does not open in my phone

my ionic project works fine with ionic serve --lab ,but while copied the.apk file in build folder to my phone and install the app but blank screen appears ,
Please can anyone suggest what might be my problem
my app is using google maps,key is provieded for both app and browser in index.html
Have you tried running it in the emulator ? Since its much easier to see the error logs . Try ionic emulate android -l or ios -l (whichever OS you are building for) and then once the execution starts run the command consolelogs it will log all the activity and you will have a better understanding about why its not working.
+1 for using Chrome Remote Debugging feature. It give you the same output as you would receive from running you app in the browser.
Additionally, I have found that sometimes if your app is already compiled, the ionic CLI doesnt always copy your current files into the APK, and uses the older cached files instead. If you are banging your head against the wall, run the following commands to make sure you have your latest code in your APK.
ionic platform remove android
ionic platform add android
ionic run android
I suggest you use the Chrome Remote Debugging feature. I encountered the same, and looked for answers to my symptom for hours. Once I connected to the chrome remote debugger, I got the console.log back, and noticed there was a problem in my routing setup.
It was a problem with ionic CLI. I've updated it to the latest and reinstalled all dependencies.