Comments (8)
Hi @callmejm.
We'd be glad to assist.
Is your icon showing up in greyscale, or simply a grey box? Please see this for a solution:
https://clevertap.com/blog/fixing-notification-icon-for-android-lollipop-and-above/
from pushy-flutter.
from pushy-flutter.
Hi @callmejm,
Basically, that's happening because your notification icon is not transparent.
Please read the article again as it explains this very clearly:
https://clevertap.com/blog/fixing-notification-icon-for-android-lollipop-and-above/
You must modify your notification icon to be fully transparent, with the visible logo in white pixels.
The Android system ignores all non-alpha channels in action icons and in the main notification icon. You should assume that these icons will be alpha-only. The system draws notification icons in white and action icons in dark gray.
from pushy-flutter.
from pushy-flutter.
Hi @callmejm,
- For in-app iOS 10+ notification banners, please also add this method override to your
AppDelegate.swift
:
// Display in-app notification banners (iOS 10+) and invoke notification handler
@available(iOS 10.0, *)
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
// Call the notification handler, if defined
Pushy.shared?.notificationHandler?(notification.request.content.userInfo, {(UIBackgroundFetchResult) in})
// Show in-app banner (no sound or badge)
completionHandler([.alert])
}
- Import the
Pushy iOS SDK
andUserNotifications
by adding the following to the top ofAppDelegate.swift
:
import Pushy
import UserNotifications
- Your
AppDelegate
class will need to inheritUNUserNotificationCenterDelegate
.
from pushy-flutter.
@pushy-me the grey out issue still exist, I already follow the instructions to generate the icon, but the icon still grey box. I have put icon into all mipmap folder and named ic_notification
from pushy-flutter.
Hi @callmejm,
- For in-app iOS 10+ notification banners, please also add this method override to your
AppDelegate.swift
:// Display in-app notification banners (iOS 10+) and invoke notification handler @available(iOS 10.0, *) func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { // Call the notification handler, if defined Pushy.shared?.notificationHandler?(notification.request.content.userInfo, {(UIBackgroundFetchResult) in}) // Show in-app banner (no sound or badge) completionHandler([.alert]) }
- Import the
Pushy iOS SDK
andUserNotifications
by adding the following to the top ofAppDelegate.swift
:import Pushy import UserNotifications
- Your
AppDelegate
class will need to inheritUNUserNotificationCenterDelegate
.
cant import Pushy , getting No such module 'Pushy'
from pushy-flutter.
Hi @callmejm,
In Objective-C (Flutter iOS), please import Pushy as follows:
@import Pushy
Please let us know if it works.
from pushy-flutter.
Related Issues (20)
- Android Notification HOT 10
- Web support HOT 1
- Dialog pop in IOS when app is in foreground. HOT 2
- Infinix Mobile Notification Issue HOT 1
- Crashes and Freezes Pushy.Register() on VIVO and OPPO devices . HOT 1
- Status Bar Notification Issue In Android HOT 3
- Feature: Support for Linux HOT 1
- Pushy.register get device token giving error HOT 1
- Token is not generating Pushy in IOS HOT 3
- Android , Pushy ( 7552): Notifications have been disabled by the app HOT 2
- Please, update dependencies HOT 4
- await Pushy.register() HOT 8
- Unable to send notification on deivce id in flutter HOT 1
- Support for Notification Channel on Android HOT 3
- [Feature Request] Field to know in which lifecycle the notification received HOT 1
- Registration failed: The application identifier is missing HOT 1
- Namespace is missing HOT 1
- `setNotificationClickListener` Triggering Automatically on Subsequent Notifications Without User Interaction HOT 2
- iOS app not receiving heads up notification when app is in the foreground HOT 1
- GetX with pushy problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushy-flutter.