c2dm | c2dm sends push notifications to Android devices via google | Notification library
kandi X-RAY | c2dm Summary
kandi X-RAY | c2dm Summary
c2dm sends push notifications to Android devices via Google Cloud Messaging (GCM). An Android device running 2.2 or newer, its registration token, and a GCM api key. There are two ways to use c2dm.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of c2dm
c2dm Key Features
c2dm Examples and Code Snippets
Community Discussions
Trending Discussions on c2dm
QUESTION
I have a react native app which is on play store for some time and recently i received this important notice from play store, stating if i don't fix this my app will be removed from play store.
Can anyone tell me what this is and how to fix it?
Here is the complete message from Play store
We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.
Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:
- Update your app to use more privacy friendly best practices, such as the Storage Access Framework or Media Store API
- Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
- Remove the All files access permission from your app entirely.
For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.
Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.
my package.json
...ANSWER
Answered 2021-Apr-15 at 08:52My understanding that we should be able to fix the problem using this option even when targeting Android 11:
- Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
Which I think is the way to fix the fact that android:requestLegacyExternalStorage="true" will be ignored on Android 11. While I'm not sure how to declare All files access permission in Play Console. There should be some form where you supposed to specify the reason your app needs this permission. Anyone can see where this form is?
QUESTION
I created my first android app in Expo, that i made the eject later on. I created the bundle and uploaded to the Google Play console, but in the list permissions appears:
...ANSWER
Answered 2021-Mar-04 at 00:03Ok, I checked that the permissions that appear are merged with my AndroidManifest.xml in the build. These are permissions required by packages that I added to my project. To help check which packages are needed I go to android > app > build > outputs > logs > manifest-merger-release-report.txt.
Hope it help others with the same problem :)
QUESTION
I am setting up my first Ionic React app. I created an app with Ionic 5 and used the In-app Purchase 2 plugin.
I wanted to test this, so I uploaded the signed APK to the Play Store.
When I check the app bundle details on the Play Store, I see that it requires several unneeded permissions:
Required permissions (13)
android.permission.ACCESS_COARSE_LOCATION, android.permission.ACCESS_FINE_LOCATION, android.permission.ACCESS_NETWORK_STATE, android.permission.CAMERA, android.permission.INTERNET, android.permission.MODIFY_AUDIO_SETTINGS, android.permission.READ_EXTERNAL_STORAGE, android.permission.RECEIVE_BOOT_COMPLETED, android.permission.RECORD_AUDIO, android.permission.WAKE_LOCK, android.permission.WRITE_EXTERNAL_STORAGE, com.android.vending.BILLING, com.google.android.c2dm.permission.RECEIVE
For example, it doesn't need ACCESS_COARSE_LOCATION, RECORD_AUDIO, READ_EXTERNAL_STORAGE, and so on.
I didn't set any of this up; apparently "Capacitor apps ship with all the core plugins included."
How do I remove these?
...ANSWER
Answered 2021-Feb-13 at 13:36The permissions are stored in /android/app/src/main/AndroidManifest.xml
. You can delete them and then rebuild the app to remove them.
QUESTION
I am implementing push notification using Firebase Cloud Messaging, for this I added this code in my AndroidManifest.xml file
...ANSWER
Answered 2020-Dec-21 at 05:03Installing the Xamarin.Google.Dagger package solved this problem for me.
QUESTION
im trying to make a simple step counter in Android, im currently using Oreo and emulating with Pixel 2 API 29. The problem is that its simply not working, when i call the sensorManager there is no sensor listed neither for STEP_COUNTER or STEP_DETECTOR. I followed different tutorials step by step and didnt work. Does anyone know what could be the problem? Here is my code and manifest, and the list im talking about,
My activity StepsActivity.java
...ANSWER
Answered 2020-Nov-18 at 16:56The problem is that the emulator does not support the STEP_COUNTER or STEP_DETECTOR. You will need to test this feature on a real device that has hardware support for those two sensors.
QUESTION
Whenever I build the project, it creates the manifest file again and writes it twice on the same lines. This causes an error during build. Every time I want to run it, I have to manually delete it and build it like that. I tried doing clean and then rebuilding. I deleted the obj and bin folders and tried again I get all kinds of the same error. Any ideas?
This is AndroidManifest.xml in App.obj/App.Android/Obj/Debug/90/AndroidManifest.xml
...ANSWER
Answered 2020-Sep-09 at 10:04I solved the problem by removing duplicated lines from AndroidManifest.xml which exists in Android.Properties. After I Rebuild it and problem is solved :)
QUESTION
I am trying for the first time to implement Firebase Cloud Messaging in my Xamarin Forms Android application.
When I run the application, the FirebaseApp initialization is successful, the parsing of json file is ok and the token is generated.
The problem is the registration of the app in the Firebase webpage is not happening. The last view of the registration is the following:
And it never stops verifying if the app has connected to their servers.
I double-checked if the name of the package is the same in both projects. I added json file to project and change its Build Action to GoogleServicesJson. I uninstalled and reinstalled the app in the device to get the token again. I tried to close and reopen the Firebase page in the browser. And I tried so many times to run the application with the Firebase webpage scanning connection of my the app to the server but the result is always the same.
See the code:
MainActivity.cs
...ANSWER
Answered 2020-Aug-22 at 21:06I have added the nuget package "Xamarin.Firebase.Analytics" and it has worked. This package is necessary everytime we use a project with the Google Analytics set up during creation.
QUESTION
I recently came across a problem with my app.
I had installed OneSignal, it worked. And some updates after adding the onesignal, stopped working. I don't know exactly what I did wrong or which module is conflicting with the onesignal, I've been on this problem for days and I still can't solve it. Need help.
My package.json:
...ANSWER
Answered 2020-Aug-14 at 07:47I changed the app_id of the onesignal in the app to a new one and it worked.
QUESTION
This is a react native application made first with expo and then ejected. When I want to perform the build it does not give any error but when installing and running it crashes, the app never always closes at once and shows an error.
Using the adb logcat tool to see the phone log and show me this:
Unable to instantiate application eduapp.arg.MainApplication: java.lang.ClassNotFoundException: Didn't find class "eduapp.arg.MainApplication" on path: DexPathList
ANSWER
Answered 2020-Aug-08 at 04:27From the logs: Unable to instantiate application eduapp.arg.MainApplication: java.lang.ClassNotFoundException: Didn't find class "eduapp.arg.MainApplication" on path
From the Android Developer docs, one of the uses for the package
attribute in AndroidManifest is:
QUESTION
I have 2 kinds of notification builders in my MyFirebaseMessagingService.java, one passes string called 'lecture_date' and opens Lectures_graph.class while the other one passes string called 'web_url' and opens webview_base.class when clicked.
What i want to achieve : fully working FCM notifications even when app is killed, notifications must open activity (with extras) once they are clicked.
How far i am : I can receive notifications to open Lectures_graph.class with intent extras, everything loads and works just fine. Even if i receive notifications for webview_base.class activity, nothing happens when i click on notification.
There might be one thing that points to problem - Logcat often tells me this :
...ANSWER
Answered 2020-Aug-04 at 00:03So i fixed my nightmare and here is how :
Since i cant open more than one specific activity from notifications, why could i just open my apps main class and handle extra variable from there ?
Instead of having for each wanted activity
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install c2dm
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page