質問編集履歴

2

一部自己解決

2019/09/07 09:11

投稿

tomoya_ios
tomoya_ios

スコア6

test CHANGED
File without changes
test CHANGED
@@ -12,18 +12,6 @@
12
12
 
13
13
 
14
14
 
15
- 具体的には、DB上では `https://` なのに取得してprintすると `https:/` となります。
16
-
17
- ただし、cloudStorageから帰ってくるURLは `https:/` でした。
18
-
19
- つまり、
20
-
21
- `https:/`(cloudstorageが返すdownloadURL) → `https://`(firestoreに保存されたimageURL) → `http:/`(imageURLを取得してprintした時)と変化してしまっています。
22
-
23
-
24
-
25
-
26
-
27
15
  cloudstorageが返すdownloadURLをそのままfirestoreに保存しているのに、URLの先頭が変化してしまう原因がわからず詰まってしまいました。
28
16
 
29
17
 

1

参考にしたURLやエラーを解決するために調べた際の記事を添付させていただきました。

2019/09/07 09:11

投稿

tomoya_ios
tomoya_ios

スコア6

test CHANGED
File without changes
test CHANGED
@@ -431,3 +431,17 @@
431
431
  Swift4.2
432
432
 
433
433
  XCode10
434
+
435
+
436
+
437
+ 追記:
438
+
439
+ 参考URL
440
+
441
+ 画像を取得する処理は以下を参考にしました。
442
+
443
+ https://www.raywenderlich.com/5359-firebase-tutorial-real-time-chat
444
+
445
+ 以下のようにURLをオプショナルで保存しているかどうかも確認しましたが、firestoreで確認してもオプショナルではありませんでした。
446
+
447
+ https://www.letsbuildthatapp.com/course_video?id=1052