Question: Currently, data of all the users who are using my Android app is going to a single folder on Firebase Storage. But I want to auto-create a new folder for every new device. Means, the data of "harry's device" will be uploaded to "Harry Folder" on storage of Firebase. And the data of "Jane's device" will be auto uploaded to "Jane Folder".

Note: I want the auto-creation of folders on Firebase Storage.

Answer: 
Turns out the issue was with the NotificationService Extension not having access to the keychain when the device was locked! duh... feel like an idiot :)

I set the kSecAttrAccessible to kSecAttrAccessibleAfterFirstUnlock while creating the key pair and problem was solved.

```
[keyDict setObject:(__bridge id)kSecAttrAccessibleAfterFirstUnlock forKey:(__bridge id)kSecAttrAccessible];

```

So my assumption that OS was not initiating the service extension was incorrect.
Check for the size of the file that you are passing in the Payload. As we have limited time to download the content. For file sizes refer <https://developer.apple.com/documentation/usernotifications/unnotificationattachment>.

Thanks,
Hope it helps.