Plugin.FirebasePushNotifications icon indicating copy to clipboard operation
Plugin.FirebasePushNotifications copied to clipboard

[Refactoring] Replace `Rng.NextInt()` as source for activity request codes

Open thomasgalliker opened this issue 4 months ago • 0 comments

Description

Today, different way to generate activity request codes are used. Clarify what is the best and safest way to generate such codes. var requestCode = Rng.NextInt() var aRequestCode = Guid.NewGuid().GetHashCode();

Background & Context

We want to avoid possible collisions if we generate duplicate request codes. Or, at least we want to check if this can happen at all.

thomasgalliker avatar Oct 01 '24 12:10 thomasgalliker