Replies: 5 comments 3 replies
-
Your issue is not related to the PushNotification Plugin itself, did you added the following code to your
Hope it helps. Cheers |
Beta Was this translation helpful? Give feedback.
-
How about the Google Analytics?
ERROR in app.component.ts:163:25 - error TS2345: Argument of type '{ [prop: string]: any; }' is not assignable to parameter of type 'WebPlugin'. |
Beta Was this translation helpful? Give feedback.
-
I'm getting this same error trying to create a unit test:
Any ideas how to resolve this? |
Beta Was this translation helpful? Give feedback.
-
Has anyone found a solution to this problem? |
Beta Was this translation helpful? Give feedback.
-
Is there any solution |
Beta Was this translation helpful? Give feedback.
-
Capacitor Version 1.5.2
npx cap doctor
output:Affected Platform(s)
Current Behavior
I have the following code in my app.js.
After using
npx add ios
and running app from xcode, it works fine. At least it says that remote notifications are not supported in simulator. Now, I run the website in browser and it says:Uncaught (in promise) PushNotifications does not have web implementation.
.Question 1) Why the above error? does this mean that I have to use
PushAPI
of the browser to have this working? i also have service worker where I listenpush
events. How do I make these work for both PWA web version and in also native version?Question 2) I don't have ionic. So I use
capacitor
only just to convert my PWA web app to native app and also to use push notifications on ios , becausepushapi
is not supported on ios. Now, because of this, in myapp.js
, I have to importcapacitor plugins
. This means that my bundle size in web increases . If I can't usecapacitor
plugins in web, why to have import at all inapp.js
at all? Any idea how I can tackle this?Beta Was this translation helpful? Give feedback.
All reactions