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

fix: notification services controller mobile fixes #4441

Merged
merged 8 commits into from
Jun 27, 2024

Conversation

Prithpal-Sooriya
Copy link
Contributor

@Prithpal-Sooriya Prithpal-Sooriya commented Jun 20, 2024

Explanation

This PR contains a bunch of mobile fixes (when integrating this controller)

Removed self. This is because it breaks mobile tests (as the mobile test environment is node, not web)

References

N/A

Changelog

@metamask/package-a

  • : Your change here
  • : Your change here

@metamask/package-b

  • : Your change here
  • : Your change here

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

this is because it breaks mobile tests (as the test environment is node, not web)
… integrated

this is because mobile does not yet support push notifications
these are not usable with TS projects that use isolatedModules
@Prithpal-Sooriya Prithpal-Sooriya added the team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications label Jun 20, 2024
@Prithpal-Sooriya
Copy link
Contributor Author

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "17.0.0-preview-509f7952",
  "@metamask-previews/address-book-controller": "5.0.0-preview-509f7952",
  "@metamask-previews/announcement-controller": "7.0.0-preview-509f7952",
  "@metamask-previews/approval-controller": "7.0.0-preview-509f7952",
  "@metamask-previews/assets-controllers": "33.0.0-preview-509f7952",
  "@metamask-previews/base-controller": "6.0.0-preview-509f7952",
  "@metamask-previews/build-utils": "3.0.0-preview-509f7952",
  "@metamask-previews/chain-controller": "0.1.0-preview-509f7952",
  "@metamask-previews/composable-controller": "7.0.0-preview-509f7952",
  "@metamask-previews/controller-utils": "11.0.0-preview-509f7952",
  "@metamask-previews/ens-controller": "12.0.0-preview-509f7952",
  "@metamask-previews/eth-json-rpc-provider": "4.0.0-preview-509f7952",
  "@metamask-previews/gas-fee-controller": "17.0.0-preview-509f7952",
  "@metamask-previews/json-rpc-engine": "9.0.0-preview-509f7952",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.0-preview-509f7952",
  "@metamask-previews/keyring-controller": "17.1.0-preview-509f7952",
  "@metamask-previews/logging-controller": "5.0.0-preview-509f7952",
  "@metamask-previews/message-manager": "10.0.0-preview-509f7952",
  "@metamask-previews/name-controller": "8.0.0-preview-509f7952",
  "@metamask-previews/network-controller": "19.0.0-preview-509f7952",
  "@metamask-previews/notification-controller": "6.0.0-preview-509f7952",
  "@metamask-previews/notification-services-controller": "0.1.0-preview-509f7952",
  "@metamask-previews/permission-controller": "10.0.0-preview-509f7952",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-509f7952",
  "@metamask-previews/phishing-controller": "10.0.0-preview-509f7952",
  "@metamask-previews/polling-controller": "8.0.0-preview-509f7952",
  "@metamask-previews/preferences-controller": "13.0.0-preview-509f7952",
  "@metamask-previews/profile-sync-controller": "0.1.0-preview-509f7952",
  "@metamask-previews/queued-request-controller": "1.0.0-preview-509f7952",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-509f7952",
  "@metamask-previews/selected-network-controller": "15.0.2-preview-509f7952",
  "@metamask-previews/signature-controller": "18.0.0-preview-509f7952",
  "@metamask-previews/transaction-controller": "33.0.0-preview-509f7952",
  "@metamask-previews/user-operation-controller": "12.0.0-preview-509f7952"
}

we wanted to expose the nock mocks as it is nice for shared testing between clients, but this is an issue on mobile.
Removing nock mocks for mobile. We can see if we can re-introduce this in the future.
@Prithpal-Sooriya
Copy link
Contributor Author

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "17.0.0-preview-caf274f8",
  "@metamask-previews/address-book-controller": "5.0.0-preview-caf274f8",
  "@metamask-previews/announcement-controller": "7.0.0-preview-caf274f8",
  "@metamask-previews/approval-controller": "7.0.0-preview-caf274f8",
  "@metamask-previews/assets-controllers": "33.0.0-preview-caf274f8",
  "@metamask-previews/base-controller": "6.0.0-preview-caf274f8",
  "@metamask-previews/build-utils": "3.0.0-preview-caf274f8",
  "@metamask-previews/chain-controller": "0.1.0-preview-caf274f8",
  "@metamask-previews/composable-controller": "7.0.0-preview-caf274f8",
  "@metamask-previews/controller-utils": "11.0.0-preview-caf274f8",
  "@metamask-previews/ens-controller": "12.0.0-preview-caf274f8",
  "@metamask-previews/eth-json-rpc-provider": "4.0.0-preview-caf274f8",
  "@metamask-previews/gas-fee-controller": "17.0.0-preview-caf274f8",
  "@metamask-previews/json-rpc-engine": "9.0.0-preview-caf274f8",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.0-preview-caf274f8",
  "@metamask-previews/keyring-controller": "17.1.0-preview-caf274f8",
  "@metamask-previews/logging-controller": "5.0.0-preview-caf274f8",
  "@metamask-previews/message-manager": "10.0.0-preview-caf274f8",
  "@metamask-previews/name-controller": "8.0.0-preview-caf274f8",
  "@metamask-previews/network-controller": "19.0.0-preview-caf274f8",
  "@metamask-previews/notification-controller": "6.0.0-preview-caf274f8",
  "@metamask-previews/notification-services-controller": "0.1.0-preview-caf274f8",
  "@metamask-previews/permission-controller": "10.0.0-preview-caf274f8",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-caf274f8",
  "@metamask-previews/phishing-controller": "10.0.0-preview-caf274f8",
  "@metamask-previews/polling-controller": "8.0.0-preview-caf274f8",
  "@metamask-previews/preferences-controller": "13.0.0-preview-caf274f8",
  "@metamask-previews/profile-sync-controller": "0.1.0-preview-caf274f8",
  "@metamask-previews/queued-request-controller": "1.0.0-preview-caf274f8",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-caf274f8",
  "@metamask-previews/selected-network-controller": "15.0.2-preview-caf274f8",
  "@metamask-previews/signature-controller": "18.0.0-preview-caf274f8",
  "@metamask-previews/transaction-controller": "33.0.0-preview-caf274f8",
  "@metamask-previews/user-operation-controller": "12.0.0-preview-caf274f8"
}

@Prithpal-Sooriya
Copy link
Contributor Author

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "17.0.0-preview-30646c8e",
  "@metamask-previews/address-book-controller": "5.0.0-preview-30646c8e",
  "@metamask-previews/announcement-controller": "7.0.0-preview-30646c8e",
  "@metamask-previews/approval-controller": "7.0.0-preview-30646c8e",
  "@metamask-previews/assets-controllers": "33.0.0-preview-30646c8e",
  "@metamask-previews/base-controller": "6.0.0-preview-30646c8e",
  "@metamask-previews/build-utils": "3.0.0-preview-30646c8e",
  "@metamask-previews/chain-controller": "0.1.0-preview-30646c8e",
  "@metamask-previews/composable-controller": "7.0.0-preview-30646c8e",
  "@metamask-previews/controller-utils": "11.0.0-preview-30646c8e",
  "@metamask-previews/ens-controller": "12.0.0-preview-30646c8e",
  "@metamask-previews/eth-json-rpc-provider": "4.0.0-preview-30646c8e",
  "@metamask-previews/gas-fee-controller": "17.0.0-preview-30646c8e",
  "@metamask-previews/json-rpc-engine": "9.0.0-preview-30646c8e",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.0-preview-30646c8e",
  "@metamask-previews/keyring-controller": "17.1.0-preview-30646c8e",
  "@metamask-previews/logging-controller": "5.0.0-preview-30646c8e",
  "@metamask-previews/message-manager": "10.0.0-preview-30646c8e",
  "@metamask-previews/name-controller": "8.0.0-preview-30646c8e",
  "@metamask-previews/network-controller": "19.0.0-preview-30646c8e",
  "@metamask-previews/notification-controller": "6.0.0-preview-30646c8e",
  "@metamask-previews/notification-services-controller": "0.1.0-preview-30646c8e",
  "@metamask-previews/permission-controller": "10.0.0-preview-30646c8e",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-30646c8e",
  "@metamask-previews/phishing-controller": "10.0.0-preview-30646c8e",
  "@metamask-previews/polling-controller": "8.0.0-preview-30646c8e",
  "@metamask-previews/preferences-controller": "13.0.0-preview-30646c8e",
  "@metamask-previews/profile-sync-controller": "0.1.0-preview-30646c8e",
  "@metamask-previews/queued-request-controller": "1.0.0-preview-30646c8e",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-30646c8e",
  "@metamask-previews/selected-network-controller": "15.0.2-preview-30646c8e",
  "@metamask-previews/signature-controller": "18.0.0-preview-30646c8e",
  "@metamask-previews/transaction-controller": "33.0.0-preview-30646c8e",
  "@metamask-previews/user-operation-controller": "12.0.0-preview-30646c8e"
}

this helps sharing known notification chainID with our platforms
@Prithpal-Sooriya
Copy link
Contributor Author

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "17.0.0-preview-ab5de025",
  "@metamask-previews/address-book-controller": "5.0.0-preview-ab5de025",
  "@metamask-previews/announcement-controller": "7.0.0-preview-ab5de025",
  "@metamask-previews/approval-controller": "7.0.0-preview-ab5de025",
  "@metamask-previews/assets-controllers": "33.0.0-preview-ab5de025",
  "@metamask-previews/base-controller": "6.0.0-preview-ab5de025",
  "@metamask-previews/build-utils": "3.0.0-preview-ab5de025",
  "@metamask-previews/chain-controller": "0.1.0-preview-ab5de025",
  "@metamask-previews/composable-controller": "7.0.0-preview-ab5de025",
  "@metamask-previews/controller-utils": "11.0.0-preview-ab5de025",
  "@metamask-previews/ens-controller": "12.0.0-preview-ab5de025",
  "@metamask-previews/eth-json-rpc-provider": "4.0.0-preview-ab5de025",
  "@metamask-previews/gas-fee-controller": "17.0.0-preview-ab5de025",
  "@metamask-previews/json-rpc-engine": "9.0.0-preview-ab5de025",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.0-preview-ab5de025",
  "@metamask-previews/keyring-controller": "17.1.0-preview-ab5de025",
  "@metamask-previews/logging-controller": "5.0.0-preview-ab5de025",
  "@metamask-previews/message-manager": "10.0.0-preview-ab5de025",
  "@metamask-previews/name-controller": "8.0.0-preview-ab5de025",
  "@metamask-previews/network-controller": "19.0.0-preview-ab5de025",
  "@metamask-previews/notification-controller": "6.0.0-preview-ab5de025",
  "@metamask-previews/notification-services-controller": "0.1.0-preview-ab5de025",
  "@metamask-previews/permission-controller": "10.0.0-preview-ab5de025",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-ab5de025",
  "@metamask-previews/phishing-controller": "10.0.0-preview-ab5de025",
  "@metamask-previews/polling-controller": "8.0.0-preview-ab5de025",
  "@metamask-previews/preferences-controller": "13.0.0-preview-ab5de025",
  "@metamask-previews/profile-sync-controller": "0.1.0-preview-ab5de025",
  "@metamask-previews/queued-request-controller": "1.0.0-preview-ab5de025",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-ab5de025",
  "@metamask-previews/selected-network-controller": "15.0.2-preview-ab5de025",
  "@metamask-previews/signature-controller": "18.0.0-preview-ab5de025",
  "@metamask-previews/transaction-controller": "33.0.0-preview-ab5de025",
  "@metamask-previews/user-operation-controller": "12.0.0-preview-ab5de025"
}

@Prithpal-Sooriya
Copy link
Contributor Author

@metamaskbot publish-preview

Copy link
Contributor

Preview builds have been published. See these instructions for more information about preview builds.

Expand for full list of packages and versions.
{
  "@metamask-previews/accounts-controller": "17.0.0-preview-4ca72848",
  "@metamask-previews/address-book-controller": "5.0.0-preview-4ca72848",
  "@metamask-previews/announcement-controller": "7.0.0-preview-4ca72848",
  "@metamask-previews/approval-controller": "7.0.0-preview-4ca72848",
  "@metamask-previews/assets-controllers": "33.0.0-preview-4ca72848",
  "@metamask-previews/base-controller": "6.0.0-preview-4ca72848",
  "@metamask-previews/build-utils": "3.0.0-preview-4ca72848",
  "@metamask-previews/chain-controller": "0.1.0-preview-4ca72848",
  "@metamask-previews/composable-controller": "7.0.0-preview-4ca72848",
  "@metamask-previews/controller-utils": "11.0.0-preview-4ca72848",
  "@metamask-previews/ens-controller": "12.0.0-preview-4ca72848",
  "@metamask-previews/eth-json-rpc-provider": "4.0.0-preview-4ca72848",
  "@metamask-previews/gas-fee-controller": "17.0.0-preview-4ca72848",
  "@metamask-previews/json-rpc-engine": "9.0.0-preview-4ca72848",
  "@metamask-previews/json-rpc-middleware-stream": "8.0.0-preview-4ca72848",
  "@metamask-previews/keyring-controller": "17.1.0-preview-4ca72848",
  "@metamask-previews/logging-controller": "5.0.0-preview-4ca72848",
  "@metamask-previews/message-manager": "10.0.0-preview-4ca72848",
  "@metamask-previews/name-controller": "8.0.0-preview-4ca72848",
  "@metamask-previews/network-controller": "19.0.0-preview-4ca72848",
  "@metamask-previews/notification-controller": "6.0.0-preview-4ca72848",
  "@metamask-previews/notification-services-controller": "0.1.0-preview-4ca72848",
  "@metamask-previews/permission-controller": "10.0.0-preview-4ca72848",
  "@metamask-previews/permission-log-controller": "3.0.0-preview-4ca72848",
  "@metamask-previews/phishing-controller": "10.0.0-preview-4ca72848",
  "@metamask-previews/polling-controller": "8.0.0-preview-4ca72848",
  "@metamask-previews/preferences-controller": "13.0.0-preview-4ca72848",
  "@metamask-previews/profile-sync-controller": "0.1.0-preview-4ca72848",
  "@metamask-previews/queued-request-controller": "1.0.0-preview-4ca72848",
  "@metamask-previews/rate-limit-controller": "6.0.0-preview-4ca72848",
  "@metamask-previews/selected-network-controller": "15.0.2-preview-4ca72848",
  "@metamask-previews/signature-controller": "18.0.0-preview-4ca72848",
  "@metamask-previews/transaction-controller": "33.0.0-preview-4ca72848",
  "@metamask-previews/user-operation-controller": "12.0.0-preview-4ca72848"
}

@@ -241,6 +241,9 @@ export default class NotificationServicesController extends BaseController<
NotificationServicesControllerState,
NotificationServicesControllerMessenger
> {
// Temporary boolean as push notifications are not yet enabled on mobile
#isPushIntegrated = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Temp for mobile. We will remove this in a later release

Copy link
Contributor

Choose a reason for hiding this comment

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

Push Notification controllers isn't integrated and won't be on Mobile since MM app relies on Firebase SDK directly. Maybe we should remove the comment and use this flag as a feature that it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK fair, as this is 0.x.x packages, there most likely will be more changes coming down the pipeline. I shall update any documentation and comments in a future version.

@@ -3,4 +3,3 @@ export * from './mock-notification-trigger';
export * from './mock-notification-user-storage';
export * from './mock-raw-notifications';
export * from './mockResponses';
export * from './mockServices';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mockServices used nock, but was for some reason incompatible with mobile. Removed for now. And we can add back in a later release once we figure out multiple exports and tree shaking.

Comment on lines +47 to +62
export const NOTIFICATION_CHAINS_ID = {
ETHEREUM: '1',
OPTIMISM: '10',
BSC: '56',
POLYGON: '137',
ARBITRUM: '42161',
AVALANCHE: '43114',
LINEA: '59144',
};
} as const;

type ToPrimitiveKeys<TObj> = Compute<{
[K in keyof TObj]: TObj[K] extends string ? string : TObj[K];
}>;
export const NOTIFICATION_CHAINS: ToPrimitiveKeys<
typeof NOTIFICATION_CHAINS_ID
> = NOTIFICATION_CHAINS_ID;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is some fancy types/constants so they can be reused for the /ui folder.

NOTIFICATION_CHAINS_ID is a strict object, whereas NOTIFICATION_CHAINS is the original loose object.

Comment on lines +1 to +23
import { NOTIFICATION_CHAINS_ID } from '../constants/notification-schema';

export const NOTIFICATION_NETWORK_CURRENCY_NAME = {
[NOTIFICATION_CHAINS_ID.ETHEREUM]: 'Ethereum',
[NOTIFICATION_CHAINS_ID.ARBITRUM]: 'Arbitrum',
[NOTIFICATION_CHAINS_ID.AVALANCHE]: 'Avalanche',
[NOTIFICATION_CHAINS_ID.BSC]: 'Binance',
[NOTIFICATION_CHAINS_ID.LINEA]: 'Linea',
[NOTIFICATION_CHAINS_ID.OPTIMISM]: 'Optimism',
[NOTIFICATION_CHAINS_ID.POLYGON]: 'Polygon',
} as const;

export const NOTIFICATION_NETWORK_CURRENCY_SYMBOL = {
[NOTIFICATION_CHAINS_ID.ETHEREUM]: 'ETH',
[NOTIFICATION_CHAINS_ID.ARBITRUM]: 'ETH',
[NOTIFICATION_CHAINS_ID.AVALANCHE]: 'AVAX',
[NOTIFICATION_CHAINS_ID.BSC]: 'BNB',
[NOTIFICATION_CHAINS_ID.LINEA]: 'ETH',
[NOTIFICATION_CHAINS_ID.OPTIMISM]: 'ETH',
[NOTIFICATION_CHAINS_ID.POLYGON]: 'MATIC',
};

export { NOTIFICATION_CHAINS_ID } from '../constants/notification-schema';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mobile does not have consistent token name/exports to extension. To keep things in sync, we will use these shared constants in this package.

@@ -69,6 +69,9 @@ export type NotificationServicesPushControllerMessenger =
AllowedEvents['type']
>;

export const defaultState: NotificationServicesPushControllerState = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mobile ask - we are now exporting default exports (this ensures that our redux initial state has "something").

@@ -12,7 +12,7 @@ import type { Types } from '../../../NotificationServicesController';
import { Processors } from '../../../NotificationServicesController';
import type { PushNotificationEnv } from '../../types/firebase';

const sw = self as unknown as ServiceWorkerGlobalScope;
declare const self: ServiceWorkerGlobalScope;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

self does not exist on mobile and breaks. So instead removing the sw variable and self is only used within functions instead of a global variable.

In the future (once we support multiple exports and tree shaking) we can tidy this up.

@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.packages.build.json",
"extends": "../../tsconfig.packages.json",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Misc, noticed we are not using the correct tsconfig for this file compared to other packages. No major issues though.

@@ -1,6 +1,6 @@
import type { Env, Platform } from '../env';

export const enum AuthType {
export enum AuthType {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Infura SDK ask. Projects that use isolatedModules are not compatible with const enums.

@Prithpal-Sooriya Prithpal-Sooriya marked this pull request as ready for review June 27, 2024 13:21
@Prithpal-Sooriya Prithpal-Sooriya requested a review from a team as a code owner June 27, 2024 13:21
Copy link
Contributor

@Jonathansoufer Jonathansoufer left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -241,6 +241,9 @@ export default class NotificationServicesController extends BaseController<
NotificationServicesControllerState,
NotificationServicesControllerMessenger
> {
// Temporary boolean as push notifications are not yet enabled on mobile
#isPushIntegrated = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Push Notification controllers isn't integrated and won't be on Mobile since MM app relies on Firebase SDK directly. Maybe we should remove the comment and use this flag as a feature that it is.

@Prithpal-Sooriya Prithpal-Sooriya merged commit 29669b6 into main Jun 27, 2024
116 checks passed
@Prithpal-Sooriya Prithpal-Sooriya deleted the fix/notification-services-fixes branch June 27, 2024 13:33
@Prithpal-Sooriya Prithpal-Sooriya mentioned this pull request Jun 27, 2024
3 tasks
Prithpal-Sooriya added a commit that referenced this pull request Jun 27, 2024
## Explanation

This PR create a new release for

- `@metamask/profile-sync-controller` to `^0.2.0`
- `@metamask/notification-services-controller` to `^0.2.0`

## References

Fixes mobile integration issues.

## Changelog

###  `@metamask/profile-sync-controller`

- **CHANGED**: Tidied up and small refactors to support mobile
integration ([#4441](#4441))

### `@metamask/notification-services-controller`

- **CHANGED**: Tidied up and small refactors to support mobile
integration ([#4441](#4441))

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate

---------

Co-authored-by: Jongsun Suh <[email protected]>
This was referenced Jun 27, 2024
Prithpal-Sooriya added a commit that referenced this pull request Jun 27, 2024
## Explanation

This PR create a new release for. This is a re-opened release from a
revert (apologies again!)
#4471

- `@metamask/profile-sync-controller` to `^0.1.1`
- `@metamask/notification-services-controller` to `^0.1.1`

## References

Fixes mobile integration issues.

## Changelog

###  `@metamask/profile-sync-controller`

- **CHANGED**: Tidied up and small refactors to support mobile
integration ([#4441](#4441))

### `@metamask/notification-services-controller`

- **CHANGED**: Tidied up and small refactors to support mobile
integration ([#4441](#4441))

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-notifications Notification Team changes. https://github.com/orgs/MetaMask/teams/notifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants