Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Optional event emit instead of function call for action buttons #1378

Merged
merged 3 commits into from
Dec 14, 2016
Merged

Optional event emit instead of function call for action buttons #1378

merged 3 commits into from
Dec 14, 2016

Conversation

akz92
Copy link
Contributor

@akz92 akz92 commented Nov 16, 2016

Description

Add the option to emit events instead of executing functions on action buttons click.

Related Issue

#1192

Motivation and Context

It's easier and IMO better to work with events instead of functions in this kind of situation.

How Has This Been Tested?

I only tested the event emission.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@macdonst
Copy link
Member

@akz92 this looks like a good start but can you fill out the PR template so I know what has and hasn't been done. Also, only one file seems to have been changed even though you have 10 commits so your doc changes are missing.

@akz92
Copy link
Contributor Author

akz92 commented Nov 16, 2016

@macdonst ok. I opted to remove the doc changes because I wasn't sure about how to add the details about this. I'll fill out the PR template and then I'll change the docs.

@macdonst
Copy link
Member

@akz92 yeah, add the docs back in. I can modify them if required.

Update emit description

Update action button callback instructions

Update action button callback instructions

Update PAYLOAD.md

Add conditional to execute function or emit event

Remove changes to doc

[fix] payload doc

get payload file from master

[fix] indentation

[fix] code style
@akz92
Copy link
Contributor Author

akz92 commented Nov 19, 2016

Added the docs back. @macdonst I tried to keep it simple since this is a secondary behavior, please let me know if you think we need to add more details to the docs.

@macdonst
Copy link
Member

macdonst commented Dec 2, 2016

@akz92 would you be interested in making a PR on the v2.0.x branch where I use ES2015?

@akz92
Copy link
Contributor Author

akz92 commented Dec 2, 2016

Sure @macdonst, just give me a few days.

@naveedahmed1
Copy link

Great job @akz92! @macdonst any update on this, when should we expect it to be merged?

@macdonst macdonst merged commit e92e951 into phonegap:master Dec 14, 2016
@macdonst
Copy link
Member

@akz92 thanks for the PR. I've merged it into master and I'll get it into a 1.9.2 release.

@akz92
Copy link
Contributor Author

akz92 commented Dec 14, 2016 via email

@macdonst
Copy link
Member

@akz92 I'm doing a rebase of your changes to the v2.0.x branch right now. So it may not be necessary. Hang tight.

macdonst added a commit that referenced this pull request Dec 14, 2016
@macdonst
Copy link
Member

@akz92 okay, I merged your code into 2.0.0 and fixed my merge screw up. It is now officially part of the 2.0.0 branch. Thanks again for your awesomeness. Do you have a twitter account?

@akz92
Copy link
Contributor Author

akz92 commented Dec 14, 2016 via email

@naveedahmed1
Copy link

Is the Changelog updated? I see an entry of v1.9.2 (2016-07-09)

https://github.com/phonegap/phonegap-plugin-push/blob/master/CHANGELOG.md

but the date is (2016-07-09) which I believe is the date of v1.9.1

@fredgalvao
Copy link
Collaborator

@naveedahmed1 You're correct, the date was not properly generated: e02ff67#commitcomment-20189903

macdonst added a commit that referenced this pull request Jan 4, 2017
macdonst added a commit that referenced this pull request Jan 6, 2017
macdonst added a commit that referenced this pull request Jan 12, 2017
ippeiukai pushed a commit to ippeiukai/phonegap-plugin-push that referenced this pull request Feb 1, 2017
…egap#1378)

* Emit event using action button callback name

Update emit description

Update action button callback instructions

Update action button callback instructions

Update PAYLOAD.md

Add conditional to execute function or emit event

Remove changes to doc

[fix] payload doc

get payload file from master

[fix] indentation

[fix] code style

* Add documentation

[fix] Doc
macdonst added a commit that referenced this pull request Apr 29, 2017
macdonst added a commit that referenced this pull request May 5, 2017
macdonst added a commit that referenced this pull request May 24, 2017
macdonst added a commit that referenced this pull request May 25, 2017
* Added partial Android FCM support (#975)

* Modified plugin.xml to include FCM changes

* Plugin.xml changes for FCM

* Java changes for FCM

* Increased plugin version to 2.0.0

* Increased plugin version in package.json

* Added topic subscription/unsubscription

* Removed some empty lines

* Fixed empty token on android first run (#1008)

* Removed GCM files and added FCM files

* Added .framework files as custom frameworks

* Changed code to work with FCM

* Added hook and resource file to copy GoogleService-Info.plist

* fixed registration and removed unused code

* Use CocoaPods

* Fix rebase errors

* Fix topic subscription and unsubscription on FCM

* Refactor GCMIntentService to FCMService

* Issue #689: Remove sender id from PushNotification init Android options

* Issue #689: Remove sender id from PushNotification init iOS options

* 📝 Update to using fcm-node

* 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json

* Add empty google services plist

* Pin FCM to 9.8.0

* 🔧 Add browser platform back for FCM branch

* 🔨🔧⬆️ Use Babel to transpile ES2015 code

* 🔧 add tern to gitignore

* 🔖 Bumping plugin version to 2.0.0-rc1

* 2.0.0-rc1

* Updating CHANGELOG

* Fixing my merge error for PR #1378 Optional event emit instead of function call for action buttons

* 🐛🍎 Issue #1461: App crashes when initialising with topics (v2.0.0-rc1)

* 🐛🐧📝⬆️ #1460: Build Issue Android

* 🐛🍎🔧 Fixing a merge issue where aps-environment was accidentally removed

* 🐧📝🐛 Issue #1470: Cannot install phonegap-plugin-push on master

* 📝 Using a newer version on the examples

* 🍎🐛 Issue #1497: App crashes after refreshing when using FCM (v2)

* Bumping plugin version to 2.0.0-rc2

* 2.0.0-rc2

* Updating CHANGELOG

* Added partial Android FCM support (#975)

* Modified plugin.xml to include FCM changes

* Plugin.xml changes for FCM

* Java changes for FCM

* Increased plugin version to 2.0.0

* Increased plugin version in package.json

* Added topic subscription/unsubscription

* Removed some empty lines

* Removed GCM files and added FCM files

* Changed code to work with FCM

* Added hook and resource file to copy GoogleService-Info.plist

* Use CocoaPods

* Fix rebase errors

* Issue #689: Remove sender id from PushNotification init Android options

* 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json

* Pin FCM to 9.8.0

* 🔧 Add browser platform back for FCM branch

* 🔨🔧⬆️ Use Babel to transpile ES2015 code

* 🔧 add tern to gitignore

* 🔖 Bumping plugin version to 2.0.0-rc1

* 🐛🐧📝⬆️ #1460: Build Issue Android

* Bumping plugin version to 2.0.0-rc2

* Added partial Android FCM support (#975)

* Modified plugin.xml to include FCM changes

* Plugin.xml changes for FCM

* Java changes for FCM

* Increased plugin version to 2.0.0

* Increased plugin version in package.json

* Added topic subscription/unsubscription

* Removed some empty lines

* Removed GCM files and added FCM files

* Added hook and resource file to copy GoogleService-Info.plist

* Use CocoaPods

* Fix rebase errors

* 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json

* Updating CHANGELOG

* ✏️ fixing error in CHANGELOG

* Bumping plugin version to 2.0.0-rc2

* Updating CHANGELOG

* Added partial Android FCM support (#975)

* Modified plugin.xml to include FCM changes

* Plugin.xml changes for FCM

* Java changes for FCM

* Increased plugin version to 2.0.0

* Increased plugin version in package.json

* Added topic subscription/unsubscription

* Removed some empty lines

* Removed GCM files and added FCM files

* Changed code to work with FCM

* Added hook and resource file to copy GoogleService-Info.plist

* fixed registration and removed unused code

* Use CocoaPods

* Fix rebase errors

* Issue #689: Remove sender id from PushNotification init Android options

* Issue #689: Remove sender id from PushNotification init iOS options

* 🐛 Issue #1188: Strings.xml google_app_id conflict with google-services.json

* 🔧 add tern to gitignore

* 🔖 Bumping plugin version to 2.0.0-rc1

* Bumping plugin version to 2.0.0-rc2

* Remove hook and use resource-file tag to copy google services file

* Add resource-file way of copying google services files

* Bump requirements

* 🔧 Update cordovaDependencies

* 🔖 Bumping plugin version to 2.0.0-rc3

* 2.0.0-rc3

* Updating CHANGELOG

* Fixes 'framework not found GoogleToolboxForMac' linker error in 2.0.0-rc3 (#1715)

* Remove unused files (#1732)

* Remove GTM framework. (#1739)
@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants