-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 45f3087
Showing
98 changed files
with
5,336 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: "\U0001F680 اضافهکردن قابلیت جدید" | ||
about: در صورتی که درخواست دارید که قابلیتی جدید به لایبرری اضافه شود | ||
title: "\U0001F680 [FEATURE]: " | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
[//]: # ([FEATURE] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند) | ||
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید) | ||
|
||
|
||
**آیا این قابلیت مرتبط با مشکلی است؟ توضیح دهید** | ||
در صورتی که این قابلیت برگرفته از یک مشکل است لطفا مشکل را شرحدهید | ||
|
||
[//]: # (در صورتی که قصد دارید مشکلی را بیان کنید و درخواست قابلیتی را ندارید بایستی مشکل را بصورت خطا یا باگ مطرح کنید و نه قابلیت) | ||
|
||
**شرح قابلیت و کارکرد آن** | ||
این قابلیت چه استفادهای دارد و چه مشکلی را حل میکند یا چه امکانی را اضافه میکند | ||
|
||
**در حال حاضر جایگزینی برای این قابلیت وجود دارد؟** | ||
در صورتی که این قابلیت نباشد آیا راه جایگزینی وجود دارد؟ | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: "❓: بیان سوال یا خطا" | ||
about: در صورتی که اروری در هر موردی رخداده که در سوالات و خطاهای مستندات ذکر نشدهاست | ||
title: "❓ [ERROR]: " | ||
labels: question | ||
assignees: '' | ||
|
||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
[//]: # ([ERROR] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند) | ||
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید) | ||
|
||
**شرح خطا** | ||
خطایی که رخداده است را شرحدهید | ||
|
||
[//]: # (در صورتی که نصب شما ثبت نمیشود لطفا خطاهای مستندات را مطالعه کنید) | ||
[//]: # (برای اضافهکردن کد آن را از بلاک div خارج کنید تا سمت راست قرار نگیرد) | ||
|
||
**لاگ خطا** | ||
لاگی که در لاگکت هنگام رخدادن خطا چاپ میشود. متن کامل استکتریس را چاپ کنید. | ||
|
||
</div> | ||
|
||
``` | ||
paste log here | ||
``` | ||
|
||
<div dir='rtl'> | ||
|
||
**اطلاعات محیط تست** | ||
- نسخهی پوشه یا پلاگین | ||
- نسخهی فریمورک | ||
- سیستمعامل (Android/iOS) | ||
- TargetSDK/CompileSDK (Android) | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: "\U0001F41B باگ در پلاگین" | ||
about: وجود باگ یا مشکل در پلاگین | ||
title: "\U0001F41B [BUG]: " | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
<div dir='rtl'> | ||
|
||
[//]: # ([BUG] و اموجی در تیتر برای وضوح مشکل ترجیحا باقی بماند) | ||
[//]: # (لطفا حتما تمپلیت را رعایت کنید تا مشکل به خوبی توضیح داده شود و متون تمپلیت را پاک نکنید) | ||
|
||
**شرح باگ** | ||
باگی که با آن مواجه شدید را شرح دهید | ||
|
||
[//]: # (در صورتی که نصب ثبت نمیشود لطفا به مستندات مراجعه کنید و خطاها را مطالعه نمایید) | ||
[//]: # (برای اضافهکردن کد آنرا خارج از بلاک div قرار دهید تا سمت راست قرار نگیرد) | ||
|
||
**تولید مجدد باگ** | ||
گامهای لازم را که برای تولید باگ بایستی طی کرد را لیست کنید | ||
|
||
|
||
**اطلاعات محیط تست** | ||
- سیستمعامل (iOS/Android) | ||
- نسخهی پوشه یا پلاگین پوشه | ||
- CompileSDK/TargetSDK (For Android) | ||
- اطلاعات دستگاهی که با آن تست کردید | ||
|
||
**لاگ خطا در لاگکت** | ||
لاگی که در لاگ کت وجود دارد (استکتریس کامل) را وارد کنید | ||
|
||
**اطلاعات اضافی** | ||
اطلاعاتی که میتواند به وضوح بیان مشکل کمک کند | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy-sample: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup git | ||
run: | | ||
echo "Initializing git" | ||
git config --global user.name "Mahdi-Malv" | ||
git config --global user.email "mmalvandi75@gmail.com" | ||
- uses: webfactory/ssh-agent@v0.4.1 | ||
with: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
ssh-private-key: ${{ secrets.ACTION_PRIVATE_KEY }} | ||
- name: Chaning local version to global version in sample | ||
run: | | ||
VERSION=$(cat pubspec.yaml | grep -i 'version:' | awk '{ print $2 }') | ||
cd example | ||
sed -i -e "s@path: ../@ @g" pubspec.yaml | ||
var3='pushe_flutter:'; var4="pushe_flutter: $VERSION" | ||
sed -i -e "s@$var3@$var4@g" pubspec.yaml | ||
cd .. | ||
- name: Push sample | ||
run: | | ||
VERSION=$(cat pubspec.yaml | grep -i 'version:' | awk '{ print $2 }') | ||
rm -rf .git | ||
cd example | ||
git init | ||
git remote add example git@github.com:pusheco/pushe-flutter-sample.git | ||
git add -A | ||
git commit -m "Update example with pushe:$VERSION" | ||
git push -f example master | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.DS_Store | ||
.dart_tool/ | ||
|
||
.packages | ||
.pub/ | ||
|
||
build/ | ||
|
||
*.iml | ||
|
||
.idea/ | ||
|
||
example/.metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled and should not be manually edited. | ||
|
||
version: | ||
revision: f30b7f4db93ee747cd727df747941a28ead25ff5 | ||
channel: stable | ||
|
||
project_type: plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# ChangeLog | ||
## 2.4.0 | ||
|
||
> **New** | ||
> - PusheFlutter now features iOS support | ||
> - Android supports Huawei push notifications using `hms` module | ||
### Android | ||
- Update native library to `2.4.1-beta05` which includes: | ||
- `hms` module adding support for sending push notifications on Huawei devices (HMSCore) | ||
- Improvements and bug fixes | ||
|
||
### iOS | ||
- Stable changes of `2.3.0-alpha01` | ||
|
||
## 2.3.0-alpha01 | ||
|
||
> **New** | ||
> PusheFlutter now features iOS support | ||
- [change] Inner plugin classes are changed to respect iOS native classes | ||
- **Android**: Update native library to `2.2.1` | ||
|
||
|
||
## 2.2.0 | ||
|
||
- Introducing **InAppMessaging** module added to plugin | ||
- Added APIs: | ||
* `triggerEvent` for triggering local events. | ||
* `disableInAppMessaging`/`EnableInAppMessaging`/`isInAppMessagingEnabled` to control whether message should be shown or not. | ||
* `setInAppMessagingListener` to get a callback when a specific event occurred on InAppMessaging module | ||
* `dismissShownInApp` to remove shown InApp message using code | ||
* `testInAppMessage` for testing purposes using code | ||
- **Fix**: Bug in `sendNotificationToUser` when type was `DeviceId` | ||
- **Fix**: PlatformChannel crash after successful `sendNotificationToUser` | ||
|
||
## 2.1.1 | ||
- Update Native Android dependency to `pushe:2.1.1` | ||
- Custom RxJava is used to avoid large size when not needed | ||
- If developer or any library is using RxJava, `duplicate` error might be thrown | ||
In that case you should exclude RxJava and instead implement a normal version | ||
- Added support for GDPR compliance | ||
- Native library has been migrated to AndroidX | ||
- Deprecate `getAndroidId`. Instead, `getDeviceId` should be used | ||
|
||
## 2.1.1-alpha01 | ||
- Update native dependency to `pushe:2.1.1-beta08` | ||
|
||
## 2.1.0 | ||
|
||
- Added Support for **Flutter Embedding V2** | ||
- Migrate native language to Kotlin | ||
- Added APIs: | ||
* `createNotificationChannel` | ||
* `removeNotificationChannel` | ||
* `enableCustomSound` | ||
* `DisableCustomSound` | ||
- Improvements on analytics methods `sendEvent` and `sendEcommerceData` | ||
- Added support for background execution to get the callbacks event when the app is fully killed | ||
- Fix bug when clearing `customId`, `userEmail` and `userPhoneNumber`. You can now set null to clear them. | ||
|
||
## 2.0.3 | ||
|
||
- Fix bug in notification listeners | ||
- Improve `sendNotificationToUser` to support multiple IDs | ||
- Function callbacks will have no boolean status anymore, since there was no false status | ||
- Code style improvements | ||
- Example project improvements | ||
|
||
## 2.0.2 | ||
|
||
- Fix issue with AndroidX | ||
|
||
## 2.0.1 | ||
|
||
- Fix formatting of plugin | ||
- Minor improvements | ||
|
||
## 2.0.0 | ||
|
||
* Migrate to the new Plus sdk of Pushe | ||
* Get used of new Plus features in the SDK | ||
* No initialization is needed for the library | ||
> Notice the `setNotificationListener` is not fully reliable yet, since it does not handle background | ||
## 1.1.0-alpha1 | ||
|
||
* Fixed Battery usage issue | ||
* Added method `isNotificationOn` | ||
|
||
## 1.0.1 | ||
|
||
* Fix problem with **AndroidX** projects. | ||
|
||
* Changed example package name. | ||
|
||
## 1.0.0 | ||
|
||
* Release ready version. | ||
|
||
* New listener API for notification callbacks. | ||
|
||
* Removed extra files and APIs. | ||
|
||
* Remove extra Fcm service. Firebase and other services can now be added and supported natively. | ||
|
||
* Minor improvements and bug fixes. | ||
|
||
## 0.9.1 | ||
|
||
* Recreating notification callbacks. Callbacks will return actual notification objects now. | ||
|
||
* From now on, Plugin can be used along with Firebase messaging plugin. | ||
|
||
* Minor improvements and bug fixes. | ||
|
||
## 0.2.1 | ||
|
||
* Added better styled callbacks. | ||
|
||
* Minor improvements. | ||
|
||
## 0.0.2 | ||
|
||
* Bug fixed on notification listeners not getting called. | ||
|
||
* Fixed a little bug in example app. | ||
|
||
* Listeners of notification callbacks are working. | ||
|
||
* Added Release offline AAR package. | ||
|
||
* More comments in plugin. | ||
|
||
## 0.0.1 | ||
|
||
* Pushe basic commands. | ||
|
||
* Support for Android OS. | ||
|
||
* Notification content callback. | ||
|
||
**Note**: Callbacks will be passed when flutter is running. So when the app is closed, notifications will not call the callback methods (They actually will, but the flutter doesn't get it). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2019 Pusheco | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Pushe flutter | ||
|
||
**Pushe** notification service official plugin for Flutter. Pushe is a push notification service. Refer to [Pushe Homepage](https://pushe.co) for more information. | ||
It supports **Android** and **iOS** (it's also possible to use it on [Flutter Web](https://medium.com/@malv/add-pushe-web-push-to-a-flutter-website-a9b1ab736e57)) | ||
|
||
## Installation | ||
|
||
Add the plugin to `pubspec.yaml`: | ||
|
||
version: [![pub package](https://img.shields.io/pub/v/pushe_flutter)](https://pub.dartlang.org/packages/pushe_flutter) | ||
|
||
```yaml | ||
dependencies: | ||
pushe_flutter: <version> | ||
``` | ||
* If you want to use the latest version, not necessarily released and stable, you can directly use the source code on Github. | ||
```yaml | ||
pushe_flutter: | ||
git: | ||
url: https://github.com/pusheco/pushe-flutter.git | ||
``` | ||
Visit the [**Documentation**](https://docs.pushe.co/docs/flutter/intro/) for more information about usage and API reference. | ||
## More Info | ||
* FAQ and issues in [Github repo](https://github.com/pusheco/pushe-flutter/issues?q=is%3Aissue+) | ||
* Sample project is in the library source code and in the [Sample repo on github](https://github.com/pusheco/pushe-flutter-sample) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures |
Oops, something went wrong.