Harris Expert Licensed User Longtime User Jan 10, 2019 #1 Does anyone know if there is a restriction on the maximum string length when creating a FCM topic (for the client) to subscribe to? For example, I need to create a (unique) FCM topic (for my FCM app account) such as "Blaine Lake (RM) Division 1". For example: The above topic string will be built from combining 2 strings from 2 tables: Table 1: "Blaine Lake (RM)" Table 2: (foreign key into) "Division 1" I have explored Google FCM documents and cannot find any reference to string length restrictions. Any Suggestions that may work better (such as string value converted to byte value)? Thanks
Does anyone know if there is a restriction on the maximum string length when creating a FCM topic (for the client) to subscribe to? For example, I need to create a (unique) FCM topic (for my FCM app account) such as "Blaine Lake (RM) Division 1". For example: The above topic string will be built from combining 2 strings from 2 tables: Table 1: "Blaine Lake (RM)" Table 2: (foreign key into) "Division 1" I have explored Google FCM documents and cannot find any reference to string length restrictions. Any Suggestions that may work better (such as string value converted to byte value)? Thanks
DonManfred Expert Licensed User Longtime User Jan 10, 2019 #2 https://stackoverflow.com/questions/48379826/are-there-any-limitations-for-the-fcm-topics-names Developers can choose any topic name that matches the regular expression: "[a-zA-Z0-9-_.~%]+" Click to expand... Based on this your topic above will not work. I would create a new table with hashes for the combined strings. Maybe combined as MD5. Use the md5 hash for the topic you want to send to. Upvote 0
https://stackoverflow.com/questions/48379826/are-there-any-limitations-for-the-fcm-topics-names Developers can choose any topic name that matches the regular expression: "[a-zA-Z0-9-_.~%]+" Click to expand... Based on this your topic above will not work. I would create a new table with hashes for the combined strings. Maybe combined as MD5. Use the md5 hash for the topic you want to send to.
Harris Expert Licensed User Longtime User Jan 10, 2019 #3 Thanks Don for your research. I see what you (and the link) means... I think I can work with these constraints. I shall experiment to see what works - based on my original concept. Any quick formula to concat my string into a md5 would be helpful. Aside: Do you ever sleep? You reply night and day - regardless of timezone! You and Erel share the same TZ (- universe)... Thanks Upvote 0
Thanks Don for your research. I see what you (and the link) means... I think I can work with these constraints. I shall experiment to see what works - based on my original concept. Any quick formula to concat my string into a md5 would be helpful. Aside: Do you ever sleep? You reply night and day - regardless of timezone! You and Erel share the same TZ (- universe)... Thanks
DonManfred Expert Licensed User Longtime User Jan 10, 2019 #4 Harris said: Any quick formula to concat my string into a md5 would be helpful. Click to expand... Code: Copy dim concat as string = table1str&table2str ' create a MD5 for concat string Upvote 0
Harris said: Any quick formula to concat my string into a md5 would be helpful. Click to expand... Code: Copy dim concat as string = table1str&table2str ' create a MD5 for concat string
Harris Expert Licensed User Longtime User Jan 10, 2019 #5 DonManfred said: Code: Copy dim concat as string = table1str&table2str ' create a MD5 for concat string Click to expand... Shall try... Thanks Upvote 0
DonManfred said: Code: Copy dim concat as string = table1str&table2str ' create a MD5 for concat string Click to expand... Shall try... Thanks
DonManfred Expert Licensed User Longtime User Jan 10, 2019 #6 Harris said: Do you ever sleep? You reply night and day - regardless of timezone! Click to expand... Not really. I´m in TZ GMT +1 and i am answering here at 6AM to 8AM (before i go to work). And i am answering here in the Evening (after work) from 5PM till 10PM. 10PM to 6AM i am sleeping. In the last weeks (over xmas) i was in holiday and had much more time to answer here. 7AM till 11PM But holiday is over And my way to work is not really far away. My route to work is about 150 METERS Upvote 0
Harris said: Do you ever sleep? You reply night and day - regardless of timezone! Click to expand... Not really. I´m in TZ GMT +1 and i am answering here at 6AM to 8AM (before i go to work). And i am answering here in the Evening (after work) from 5PM till 10PM. 10PM to 6AM i am sleeping. In the last weeks (over xmas) i was in holiday and had much more time to answer here. 7AM till 11PM But holiday is over And my way to work is not really far away. My route to work is about 150 METERS
Harris Expert Licensed User Longtime User Jan 10, 2019 #7 DonManfred said: But holiday is over Click to expand... You must have kids, based on last emjoi (back in school) DonManfred said: My route to work is about 150 METERS Click to expand... Mine is less that 1 meter... from bed to desk... Living in a 26 foot 5th wheel RV reduces distances to everything (except the beer store...)! Upvote 0
DonManfred said: But holiday is over Click to expand... You must have kids, based on last emjoi (back in school) DonManfred said: My route to work is about 150 METERS Click to expand... Mine is less that 1 meter... from bed to desk... Living in a 26 foot 5th wheel RV reduces distances to everything (except the beer store...)!
DonManfred Expert Licensed User Longtime User Jan 10, 2019 #8 Harris said: You must have kids, based on last emjoi (back in school) Click to expand... No it was just an emoji that i do not care about need working again.. I have no kids, no wife but three Cats. THEY are saying probably "He is gone to work finally, we now can sleep in patience " Upvote 0
Harris said: You must have kids, based on last emjoi (back in school) Click to expand... No it was just an emoji that i do not care about need working again.. I have no kids, no wife but three Cats. THEY are saying probably "He is gone to work finally, we now can sleep in patience "
Harris Expert Licensed User Longtime User Jan 10, 2019 #9 Good on ya... (My sweet) Sharpie, one of my cats - the investigator... She can swat a dragonfly (or grasshopper) out of the air - from 4 feet overhead! Upvote 0
Good on ya... (My sweet) Sharpie, one of my cats - the investigator... She can swat a dragonfly (or grasshopper) out of the air - from 4 feet overhead!