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

feat(app-tracking): add permission on startup #20

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

huzaifaedhi22
Copy link

This PR

  • adds App Tracking permission on app startup to comply with app store requirements

@dargmuesli dargmuesli changed the title feat(app-tracking): add app tracking permission on startup feat(app-tracking): add permission on startup Apr 3, 2025
Comment on lines 290 to 297








Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's going on with the indentations and line breaks ;D

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reformatted, you can resolve if code looks good to you still

@dargmuesli dargmuesli force-pushed the fix/add-apptracking-permission branch from 0c663f1 to 796e58a Compare April 3, 2025 15:04
@@ -2,6 +2,8 @@ import UIKit
@preconcurrency import WebKit
import AuthenticationServices
import SafariServices
import AppTrackingTransparency
import FirebaseCore
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is FirebaseCore needed here now?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pod Installation was breaking for me without this, I am not sure if this is also required for production.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, pod installation should not depend on this source code, could you verify?

if message.name == "print" {
func returnTrackingPermissionResult(isAuthorized: Bool) {
let result = isAuthorized ? "authorized" : "denied"
dispatchEventToWebView(name: "tracking-permission-request", data: result)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would we listen for this in the maevsi/vibetype? Using the service worker?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added listener for this here maevsi/vibetype@70990f4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants