Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] [iOS] Pluggable application delegate #43557

Merged

Conversation

naithar
Copy link
Contributor

@naithar naithar commented Nov 15, 2020

Same as #43556 for 3.2 branch.
Also depends on #41340 being merged first.

Push notification example

Plugin repo: https://github.com/naithar/godot_ios_plugin_apns

Usage:

func _ready():
	print("start")
	if Engine.has_singleton("APNS"):
		print("connecting apns")
		apns = Engine.get_singleton("APNS")
		apns.connect("device_address_changed", self, "_on_device_address")
		apns.register_push_notifications()
	
func _on_device_address(device_address):
	print(device_address)

Result:

@akien-mga akien-mga merged commit c47ad12 into godotengine:3.2 Jan 15, 2021
@akien-mga
Copy link
Member

Thanks!

@naithar naithar deleted the feature/pluggable_app_delegates_3.2 branch February 9, 2021 08:32
@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants