Hi @Sukeerthi , this should be possible. You can follow the steps mentioned in the article you shared to enable passwordless phone sign-in authentication method.
For adding push notifications from B2C policy, I would like to clarify that Microsoft Authenticator push notifications are only available for Azure AD tenants, not for Azure AD B2C tenants. However, you can use the Microsoft Graph API to send push notifications to the Microsoft Authenticator app.
To use the Graph API, you need to register your application in Azure AD and obtain an access token. You can then use the access token to call the Microsoft Graph API to send push notifications to the Microsoft Authenticator app.
Here is an example of how to send a push notification using the Microsoft Graph API in C#:
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var notification = new Notification
{
Priority = "High",
TargetPolicy = new TargetPolicy
{
Platforms = new List<string> { "ios", "android" },
ExcludedPlatforms = new List<string> { "windows" },
IncludeTestVariants = true
},
Payload = new Payload
{
Notification = new NotificationPayload
{
Title = "My Title",
Body = "My Body"
}
}
};
await graphClient.DeviceAppManagement.MobileApps["{mobileAppId}"].Notifications
.Request()
.AddAsync(notification);
Please note that this is just an example and you will need to modify it to fit your specific requirements.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James