ERROR TypeError: Object(...) is not a function at WebIntent.get [as ACTION_VIEW] - ionic-framework

I am trying to integrate Google pay into my app using web intent plugin. After I completed the install I got the following error:
ERROR TypeError: Object(...) is not a function at WebIntent.get [as
ACTION_VIEW]
Click here for my error

Related

Capacitor Share ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL TypeError: Failed to execute

I'm working with Ionic 6 and Capacitor, and i'm using the default Capacitor Share API, but when using it i get this error.
ERROR Error: Uncaught (in promise): TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
TypeError: Failed to execute 'share' on 'Navigator': Invalid URL
Does anyone know if this is an API bug or a uncompatibility issue with my browser?
I'm on Microsoft Edge; Version 109.0.1518.61.

flutter web phone auth: TypeError: Cannot read properties of undefined (reading 'settings')

I am trying to add firebase phone auth OTP verification in my flutter web app.
But getting this error: TypeError: Cannot read properties of undefined (reading 'settings').
Please help in resolving this error.

Error: Unsupported operation: Platform._localeName

I am using dart.io package and trying to detect the current locate of the system using Platform.localeName like this
WidgetsFlutterBinding.ensureInitialized();
String defaultSystemLocale = Platform.localeName;
print('$defaultSystemLocale');
But when I run the app in Chrome (Web), I am getting this error
Error: Unsupported operation: Platform._localeName
at Object.throw_ [as throw] (http://localhost:62284/dart_sdk.js:5061:11)
at Function._localeName (http://localhost:62284/dart_sdk.js:54692:17)
at Function.localeName (http://localhost:62284/dart_sdk.js:54698:71)
at Function.get localeName [as localeName] (http://localhost:62284/dart_sdk.js:54574:27)
at main (http://localhost:62284/packages/testapp/main4.dart.lib.js:97:45)
Any idea why?
If you are getting Platform from dart:io, it is not supported on web (see this website). You can import it from universal_io instead.

ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence vendor-es2015.js:43770

I'm developing my Ionic/Angular app, and I'm running into the following error when I try to log in through back-end login api. Any ideas as to why? I googled it, but I could find any relevant info, the issue still remains. What causes this error?
vendor-es2015.js:43770 ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence
at resolvePromise (polyfills-es2015.js:4147)
at resolvePromise (polyfills-es2015.js:4104)
at polyfills-es2015.js:4208
at ZoneDelegate.invokeTask (polyfills-es2015.js:3741)
at Object.onInvokeTask (vendor-es2015.js:73623)
at ZoneDelegate.invokeTask (polyfills-es2015.js:3740)
at Zone.runTask (polyfills-es2015.js:3518)
at drainMicroTaskQueue (polyfills-es2015.js:3909)
at ZoneTask.invokeTask [as invoke] (polyfills-es2015.js:3819)
at invokeTask (polyfills-es2015.js:4953)
Finally, I found the cause of the issue. It's due to an error code returned by a back-end api call. After getting rid of the error code, the login functions well.

Not able to view PDF on mobile using pdf js

I can view a PDF in the browser using ionic serve, but I am not able to view the PDF on a device. I am testing on Android.
This is the error I'm getting:
polyfills.js:3 Fetch API cannot load file:///android_asset/www/assets/imgs/11.pdf. URL scheme “file” is not supported.
(anonymous) # polyfills.js:3
vendor.js:1 ERROR Error: Uncaught (in promise): TypeError: Failed to fetch
TypeError: Failed to fetch
at polyfills.js:3
at Generator._invoke (0.js:1)
at Generator.t.(anonymous function) [as next]
(file:///android_asset/www/build/0.js:1:278295)
vendor.js:1 ERROR Error: Uncaught (in promise): DataCloneError: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
Error: Failed to execute ‘postMessage’ on ‘Worker’: TypeError: Failed to fetch could not be cloned.
at o.postMessage (0.js:1)
Thanks in advance.