Opened 2 years ago

Last modified 2 years ago

#6377 closed change

Enable testing push notifications with release and devbuild Xcode configurations — at Version 2

Reported by: dzhang Assignee: dzhang
Priority: Unknown Milestone:
Module: Adblock-Plus-for-iOS/macOS Keywords:
Cc: Blocked By:
Blocking: Platform: iOS
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29694555/

Description (last modified by dzhang)

Background

To switch between company and enterprise accounts, there are four (4) changes to be made with the following values in parentheses:

  1. General > Bundle identifier (org.adblockplus.AdblockPlusSafari|org.adblockplus.devbuilds.AdblockPlusSafari)
  2. General > Team (Company|Enterprise)
  3. Capabilities > App Groups (group.org.adblockplus.AdblockPlusSafari|group.org.adblockplus.devbuilds.AdblockPlusSafari)
  4. Edit scheme > Build configuration (Debug|Devbuild debug)

It is required to use automatic signing to making switching configurations possible without additional changes. I attempted to change configurations using manual signing and was not able to build the project successfully. It appeared that many more changes to the build settings to account for the differences in the app IDs are needed without automatic signing.

Note that no further changes to the extensions appear to be needed when using this method. The bundle ID does not need to be changed on the extensions.

Note that the app id for the enterprise safari extension and action extension do not have an app group configured as they are for the release extensions.

Note that these configurations cannot be cleanly separated into a separate target because the product name is based on the target name.

What to change

  • Change project to use automatic signing
  • Enable the push notifications capability
  • Set default build configuration to be devbuild for push notification testing

Code for implementing push notifications will be part of another issue.

Change History (2)

comment:1 Changed 2 years ago by dzhang

  • Description modified (diff)

comment:2 Changed 2 years ago by dzhang

  • Description modified (diff)
Note: See TracTickets for help on using tickets.